funtool
Version:
A modern, efficient, and modular JavaScript utility library designed to enhance developer productivity.
3 lines (2 loc) • 376 B
JavaScript
;exports.at=function(t,e){const n=t.length;if(0!==n)return e<0&&(e=n+e),t[e]},exports.intersect=function(t,e){return t.filter((t=>e.includes(t)))},exports.remove=function(t,e){return t.filter((t=>!e.includes(t)))},exports.union=function(t,e){return[...new Set([...t,...e])]},exports.unique=function(t){return[...new Set(t)]};
//# sourceMappingURL=index.cjs.js.map