A minimalist JavaScript Util library with a largely Lodash-compatible API.
npm i min-utilvar _ = require('min-util')Inspired by lodash and underscore
min-util (~4kb gzipped)
Lodash is ~24kb gzipped
Try in console, exports as _
Check Unit Tests
_.each->forEach_.map_.filter_.some_.every_.reduce_.reject_.invoke_.findIndex_.find_.slice_.indexOf_.includes_.uniq_.uniqBy_.flatten_.union_.sample_.sampleSize_.shuffle_.difference_.without_.rest_.compact_.size_.first_.last_.groupBy_.partition_.range_.pullAt_.remove_.fill_.nth
_.keys_.forIn_.extend_.defaults_.values_.pick_.functions_.only_.mapKeys_.mapObject_.create_.has_.get_.set_.isMatch_.toPlainObject_.size_.invert
_.bind_.once_.memoize_.throttle_.debounce_.delay_.after_.before_.curry_.wrap_.negate
_.trim_.split_.indexOf_.slice_.toLower_.toUpper_.toString_.camelCase_.capitalize_.upperFirst_.lowerFirst_.includes_.size_.startsWith_.endsWith_.repeat_.padLeft_.padRight_.templatenot support templateSettings
_.noop_.now_.chain_.value_.constant_.identity_.mixin_.inherits_.random_.uniqueId
_.isString_.isArray_.isArrayLike_.isBoolean_.isElement_.isEmpty_.isFunction_.isInteger_.isNaN_.isNumber_.isObject_.isPlainObject_.isRegExp_.isUndefined
_.is equals min-is
assert(_.is.arraylike({0: 'foo', length: 1}))- all browsers even
IE6+ - node.js