UNPKG

ts-prime

Version:

A utility library for JavaScript and Typescript.

11 lines (10 loc) 316 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var purry_1 = require("./purry"); function _isOneOf(value, array) { return typeof value !== 'undefined' && array.indexOf(value) !== -1; } function isOneOf() { return purry_1.purry(_isOneOf, arguments); } exports.isOneOf = isOneOf;