make function memorization
npm install memorize-one> Memorition function which return cache result when identity inputs.
  
``bash`
yarn add memorize-one
`js
const memorizeOne = require('memorize-one')
let i = 0
const fn = () => ++i
const memoFn = memorizeOne(fn)
memoFn('input') // 1
memoFn('input') // 1
const a = { age: 1 }
a.obj = a
const b = { age: 1 }
b.obj = b
memoFn(a) // 2
memoFn(b) // 2
//=> foo
`
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
memorize-one © Eliaztray, Released under the MIT License.
Authored and maintained by Eliaztray with help from contributors (list).
> eliaztray · GitHub @Eliaztray · Twitter @eliaztray