UNPKG

crocks

Version:

A collection of well known Algebraic Datatypes for your utter enjoyment.

14 lines (10 loc) 285 B
/** @license ISC License (c) copyright 2017 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ // isSame : (a, b) -> Boolean function isSame(x, y) { if(x === y) { return x !== 0 || 1 / x === 1 / y } return x !== x && y !== y } module.exports = isSame