misc-utils

1.0.10 • Public • Published

misc-utils

This is a compilation of utility functions written in ES6 that I've been updating as and when I run into a requirement that isn't covered by something readily available off-the-shelf. A layer on top of lodash is what it looks like for the most part.

Install

npm install --save misc-utils

Usage

 
import { isVoid, deepDiff } from 'misc-utils'
...
let styleX = {
  base: {
    margin: '0 auto'
    background: {
      color: 'white'
    }
  }
}
let styleY = {
  base: {
    margin: 'auto'
  },
  active: {
    width: '100%'
  }
}
let styleDiff = deepDiff(styleX,styleY)
if (!isVoid(styleDiff)) {
  console.log(styleDiff)
}
 

License

MIT © Thomas Varghese

Readme

Keywords

none

Package Sidebar

Install

npm i misc-utils

Weekly Downloads

0

Version

1.0.10

License

MIT

Unpacked Size

244 kB

Total Files

5

Last publish

Collaborators

  • numbervine