UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

23 lines 594 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.equalityAllEqual = void 0; /** * @public * Returns true if all items are triple equal `===`. * @remarks * See {@link equalityAllEqual}. */ function equalityAllEqual(items) { if (items.length === 0) { return false; } const first = items[0]; for (let i = 1, iEnd = items.length; i < iEnd; ++i) { if (items[i] !== first) { return false; } } return true; } exports.equalityAllEqual = equalityAllEqual; //# sourceMappingURL=equality-all-equal.js.map