diff options
author | Graeme Yeates <yeatesgraeme@gmail.com> | 2016-11-17 09:53:55 -0500 |
---|---|---|
committer | Graeme Yeates <yeatesgraeme@gmail.com> | 2016-11-17 09:53:55 -0500 |
commit | b6d0528c9c398823c3f6fdf7523b74b916ceb95c (patch) | |
tree | 583847619c520b772bacbf2d204b81112055792c /lib/internal/rest.js | |
parent | 665327e07e2437ef7959af6544ed02594cfe76dd (diff) | |
download | async-b6d0528c9c398823c3f6fdf7523b74b916ceb95c.tar.gz |
Cleanup some of the dependency importslib-import-cleanups
Saves 800 bytes on min.js
Diffstat (limited to 'lib/internal/rest.js')
-rw-r--r-- | lib/internal/rest.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/internal/rest.js b/lib/internal/rest.js new file mode 100644 index 0000000..ee70cc6 --- /dev/null +++ b/lib/internal/rest.js @@ -0,0 +1,8 @@ +import _overRest from 'lodash/_overRest'; +import identity from 'lodash/identity'; + +// Lodash rest function without function.toString() +// remappings +export default function rest(func, start) { + return _overRest(func, start, identity); +} |