UNPKG

ts-flex-query

Version:
17 lines 567 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.collections = void 0; const lodash_1 = require("lodash"); const utils_1 = require("../helpers/utils"); exports.collections = { distinct(collection) { return (0, lodash_1.uniq)(collection); }, in(value, collection) { return (0, utils_1.isDefined)(collection) && collection.includes(value); }, first(collection) { return collection === null || collection === void 0 ? void 0 : collection[0]; } }; //# sourceMappingURL=collections.js.map