virtual-lodash
Wrapper functions for Lodash that can be used as virtual methods with es6 bind operator.
import {camelCase} from 'virtual-lodash';// orimport camelCase from 'virtual-lodash/camelCase'; 'FOO_BAR'::camelCase(); // → 'fooBar'
Performance
Implementation of wrapper functions is performance oriented and uses arguments
only if wrapped Lodash method does so.
For example, here is a wrapper function for cloneWith
that has fixed arity:
var _cloneWith = ; module { 'use strict'; return ;};
On the other hand, union
method uses arguments
object and so does corresponding wrapper:
var _union = ; module { 'use strict'; var length = argumentslength; var args = Arraylength + 1; args0 = this; for var i = 0; i < length; ++i argsi + 1 = argumentsi; return _union;};
Versions
virtual-lodash
has same versioning as Lodash itself, so virtual-lodash@4.17.2
uses lodash@4.17.2
under the hood. Project is automatically rebuild on the same day when new Lodash update arrives.
License
The code is available under MIT licence.