0.0.20 • Published 6 years ago

@jmaguirrei/belt v0.0.20

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

Belt

Minimal Lodash-like utilities.

Purpose: To avoid installing Lodash in favor of "babel" ESNext features (like map, filter, reduce) but at the same time making available some missing features.

List of methods:

  • compact (array) => (array)
  • get (obj, key, defaultValue) => (any)
  • has (obj, key) => (boolean)
  • last (array) => (any)
  • omit (object, [keys]) => (object)
  • pick (object, [keys]) => (object)
  • random (low number, high number) => (number)
  • range (low number, high number) => (array)
  • sample (array) => (any)
  • uid (strLength number) => (string)
  • uniq (array) => (array)

Usage

import _ from '@jmaguirrei/belt';
const array = [ 1, 2, 3, 4 ];
console.log(_.last(array)) // 4
0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago