1.0.1 • Published 3 years ago

moreutils.js v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

About

MoreUtils.js is a simple package aimed to add more functionality to JavaScript that can be useful to have at hand.

Installation

npm i moreutils.js

Example usage

// Without destructuring
const moreutils = require('moreutils.js');

const emptyObject = {};
const filledObject = {
  string: "This is a string";
};

moreutils.empty(emptyObject); // Returns true
moreutils.empty(filledObject); // Returns false

// With destructuring
const { empty } = require('moreutils.js');

const emptyObject = {};
const filledObject = {
  string: "This is a string";
};

empty(emptyObject); // Returns true
empty(filledObject); // Returns false

Links

1.0.1

3 years ago

1.0.0

3 years ago