# microdash

> Tiny utilities for Node and the browser

Latest version **1.4.2** (published 2020-08-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install microdash
pnpm add microdash
yarn add microdash
bun add microdash
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.2 |
| Published | 2020-08-03 |
| First published | 2015-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.6 |
| Dependencies | 0 |
| Unpacked size | 37.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Dan Phillimore |
| Maintainers | asmblah |
| Keywords | tiny, each, extend, map |

## Links

- npm: https://www.npmjs.com/package/microdash
- Repository: https://github.com/asmblah/microdash
- Issues: http://github.com/asmblah/microdash/issues
- npm.io page: https://npm.io/package/microdash

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 1.4.2 (latest) — 2020-08-03
- 1.4.1 — 2020-06-19
- 1.4.0 — 2020-05-18
- 1.3.0 — 2015-10-27
- 1.2.1 — 2015-10-26
- 1.2.0 — 2015-10-26
- 1.1.2 — 2015-10-26
- 1.1.1 — 2015-10-26
- 1.1.0 — 2015-10-26
- 1.0.0 — 2015-10-26

## README

Microdash
=========

[![Build Status](https://github.com/asmblah/microdash/workflows/CI/badge.svg)](https://github.com/asmblah/microdash/actions?query=workflow%3ACI)

Micro version of lodash.

Contains support for only the following methods:

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

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

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

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

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

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

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

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

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

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

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

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

Keeping up to date
------------------
- [Follow me on Twitter](https://twitter.com/@asmblah) for updates: [https://twitter.com/@asmblah](https://twitter.com/@asmblah)

---
_Source: https://npm.io/package/microdash · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
