Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 409 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 409 Bytes

is

When Object.is is too many keystrokes.

Installation

yarn add @standard-library/is

Usage

Use anywhere you might otherwise want to check equality. Never again use the vastly inferior === and ==. Also: functional.

const is = require("@standard-library/is");

is(1, 1);
// => true

is(1, 2);
// => false

[true, true, true, true].reduce(is, true);
// => true