UNPKG

@szegedsw/lib-node

Version:

A little framework published by Szeged Software Zrt. in order to enhance api endpoint security and create reuseable code. Email module, Logging system, and much more. Further improvements are expected.

25 lines 668 B
"use strict"; /* eslint-disable global-require */ /* eslint-disable no-extend-native */ Array.prototype.remove = function (item) { let index; // eslint-disable-next-line @typescript-eslint/no-var-requires if (require("util").isArray(item)) { item.forEach((i) => { index = this.indexOf(i, 0); if (index > 0) { this.splice(index, 1); } }); } else { index = this.indexOf(item, 0); if (index > 0) { this.splice(index, 1); } } return this; }; // az Array.prototype.merge // az Array.prototype.uniqKeysBy //# sourceMappingURL=array.ext.js.map