0.0.3 • Published 4 years ago

@saber2pr/memo v0.0.3

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

@saber2pr/memo

memorizer.

# from npm
npm install @saber2pr/memo

# from github
git clone https://github.com/Saber2pr/memo.git

API

const add = Memo((a, b) => {
  console.log('exec')
  return a + b
})

console.log(add(1, 2)) // exec 3
console.log(add(1, 2)) // 3

start

npm install
npm start

npm test

Author: saber2pr


develope and test

you should write ts in /src

you should make test in /src/test

export your core in /src/index.ts!