cury

Curry a function with typescript typing

Usage no npm install needed!

<script type="module">
  import cury from 'https://cdn.skypack.dev/cury';
</script>

README

cury

NPM version Build status Downloads

Usage:

import curry from 'cury';

const curried = curry(function(name: string, age: number) {
  return `${name} is ${age} years old`;
})

console.log(curried('Bob')(50)); // logs: 'Bob is 50 years old'