1.1.1 • Published 7 years ago

bstar.hasnull v1.1.1

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

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

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago