@davidcraig/utils

0.0.5 • Public • Published

Utilities

Installation

npm i -D @davidcraig/utils

Helpers

Object

hasProp (obj, prop) - Checks if the property exists on the provided object.

Array

reduceSumByKey (array, key) - Takes an array of objects, and performs reduce (sum) on the values keyed by the provided key on each object.

Misc

hasValue (val) - Checks if the given value is not null and is not undefined

Readme

Keywords

Package Sidebar

Install

npm i @davidcraig/utils

Weekly Downloads

1

Version

0.0.5

License

ISC

Unpacked Size

4.86 kB

Total Files

8

Last publish

Collaborators

  • davidcraig