1.0.10 • Published 6 years ago

misc-utils v1.0.10

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

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago