JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1189
  • Score
    100M100P100Q107291F
  • License MIT

Tiny utilities for Node and the browser

Package Exports

  • microdash

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (microdash) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Microdash

Build Status

Micro version of lodash.

Contains support for only the following methods:

.each(...)

_.each([1, 2, 3], function (value, key) { ... });

.escapeRegExp(...)

console.log(_.escapeRegExp('My [string]')); // 'My \[string\]'

.extend(...)

_.extend({}, defaults, {
    open: function () { ... }
});

.filter(...)

_.filter([1, 2, 3], function (value) {
    return value >= 2;
});

.forOwn(...)

_.forOwn({a: 1, b: 2}, function (value, key) { ... });

.isArray(...)

console.log(_.isArray([1, 2, 3));   // true
console.log(_.isArray({length: 2}); // false

.isBoolean(...)

console.log(_.isBoolean(false)); // true
console.log(_.isBoolean(21));    // false

.isFunction(...)

console.log(_.isFunction(function () {}));  // true
console.log(_.isFunction(21));              // false

.isNumber(...)

console.log(_.isNumber(123));   // true
console.log(_.isNumber('hi'));  // false

.isPlainObject(...)

console.log(_.isPlainObject({a: 1}));   // true
console.log(_.isPlainObject([1, 2]));   // false

.isString(...)

console.log(_.isString('my string'));   // true
console.log(_.isString(321));           // false

.map(...)

_.map([1, 2, 3], function (value) {
    return value * 2;
});

Keeping up to date