New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

microdash

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microdash

Tiny utilities for Node and the browser

latest
Source
npmnpm
Version
1.4.2
Version published
Weekly downloads
919
5.15%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

tiny

FAQs

Package last updated on 03 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts