+2
-2
@@ -5,3 +5,3 @@ { | ||
| "repository": "git://github.com/micro-js/apply.git", | ||
| "version": "1.0.1", | ||
| "version": "1.1.0", | ||
| "license": "MIT", | ||
@@ -13,3 +13,3 @@ "main": "lib/index.js", | ||
| "dependencies": { | ||
| "@micro-js/slice": "^1.0.0" | ||
| "@f/slice": "^1.0.0" | ||
| }, | ||
@@ -16,0 +16,0 @@ "devDependencies": { |
+15
-1
@@ -15,5 +15,17 @@ | ||
| ## Usage | ||
| ```js | ||
| var apply = require('@f/apply') | ||
| apply(add, [1, 2]) // => 3 | ||
| function add (one, two) { | ||
| return one + two | ||
| } | ||
| ``` | ||
| ## API | ||
| ### .apply(fn, args) | ||
| ### apply(fn, args) | ||
@@ -23,2 +35,4 @@ * `fn` - The function to invoke | ||
| **Returns:** return of invoked `fn` | ||
| ## Performance | ||
@@ -25,0 +39,0 @@ |
3088
5.39%52
36.84%+ Added
+ Added
- Removed
- Removed