1.0.10 • Published 7 years ago

misc-utils v1.0.10

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

8 years ago