UNPKG

sequelize-typescript

Version:

Decorators and some other extras for sequelize (v3 + v4)

14 lines 417 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Removes duplicates from specified array */ function unique(arr) { return arr.filter(exports.uniqueFilter); } exports.unique = unique; /** * Returns true for items, that only exists once on an array */ exports.uniqueFilter = function (item, index, arr) { return arr.indexOf(item) === index; }; //# sourceMappingURL=array.js.map