Comparing version 0.0.0 to 0.1.0
{ | ||
"name": "bukk", | ||
"version": "0.0.0", | ||
"version": "0.1.0", | ||
"license": "MIT", | ||
@@ -9,3 +9,13 @@ "repository": "christianhg/bukk", | ||
"email": "christianhg@gmail.com" | ||
}, | ||
"scripts": { | ||
"test": "ava", | ||
"watch:test": "ava --watch" | ||
}, | ||
"ava": { | ||
"files": "tests/*.js" | ||
}, | ||
"devDependencies": { | ||
"ava": "^0.17.0" | ||
} | ||
} |
@@ -13,4 +13,46 @@ # bukk | ||
## "Bukk?" | ||
## "Bukk"? | ||
"Bukk" means "ram" in Norwegian. | ||
## Usage | ||
Install using `yarn`: | ||
``` | ||
yarn add bukk | ||
``` | ||
Or `npm`: | ||
``` | ||
npm install --save bukk | ||
``` | ||
Import module: | ||
```js | ||
const B = require('bukk') | ||
``` | ||
## Development | ||
Install dependencies: | ||
``` | ||
yarn install | ||
``` | ||
### Running tests | ||
Test once: | ||
``` | ||
yarn run test | ||
``` | ||
Test in watch mode: | ||
``` | ||
yarn run watch:test | ||
``` |
const curry = (f, recieved = [], arity = f.length) => | ||
arity === 0 | ||
arity <= 0 | ||
? f.apply(undefined, recieved) | ||
@@ -4,0 +4,0 @@ : (...args) => |
105845
20
81
58
1