UNPKG

funtool

Version:

A modern, efficient, and modular JavaScript utility library designed to enhance developer productivity.

3 lines (2 loc) 575 B
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).funtool={})}(this,(function(e){"use strict";e.at=function(e,n){const t=e.length;if(0!==t)return n<0&&(n=t+n),e[n]},e.intersect=function(e,n){return e.filter((e=>n.includes(e)))},e.remove=function(e,n){return e.filter((e=>!n.includes(e)))},e.union=function(e,n){return[...new Set([...e,...n])]},e.unique=function(e){return[...new Set(e)]}})); //# sourceMappingURL=index.umd.js.map