0.0.20 • Published 5 years ago

@jmaguirrei/belt v0.0.20

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago