1.1.1 • Published 5 years ago

bstar.hasnull v1.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

HasNull

Takes an object, loops through it, and returns true if any value in it is null. Useful for checking collections of required elements & attributes.

Example Usage

import HasNull from 'bstar.hasnull';

const ui = {
  closeButtons: document.querySelector('.button--close'),
  openButtons: someElement.getAttribute('data-endpoint') || null
};

if (!HasNull(ui)) {
  // ui has no null values
}
1.1.1

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago