@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@antoniovdlc/reduce"),a=require("@antoniovdlc/sort"),r={sum:e.sum,average:e.average,groupBy:e.groupBy},l={alphabetically:a.alphabetically,alphabeticallyBase:a.alphabeticallyBase,numerically:a.numerically,chronologically:a.chronologically,combine:a.combine,createCompareFunction:a.createCompareFunction};exports.reduce=r,exports.sort=l; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@antoniovdlc/map"),a=require("@antoniovdlc/reduce"),r=require("@antoniovdlc/sort"),l={pick:e.pick,select:e.select},o={sum:a.sum,average:a.average,groupBy:a.groupBy},c={alphabetically:r.alphabetically,alphabeticallyBase:r.alphabeticallyBase,numerically:r.numerically,chronologically:r.chronologically,combine:r.combine,createCompareFunction:r.createCompareFunction};exports.map=l,exports.reduce=o,exports.sort=c; |
@@ -0,3 +1,8 @@ | ||
import { pick, select } from "@antoniovdlc/map"; | ||
import { sum, average, groupBy } from "@antoniovdlc/reduce"; | ||
import { combine, createCompareFunction } from "@antoniovdlc/sort"; | ||
declare const map: { | ||
pick: typeof pick; | ||
select: typeof select; | ||
}; | ||
declare const reduce: { | ||
@@ -16,2 +21,2 @@ sum: typeof sum; | ||
}; | ||
export { reduce, sort }; | ||
export { map, reduce, sort }; |
@@ -1,1 +0,1 @@ | ||
import{sum as o,average as a,groupBy as r}from"@antoniovdlc/reduce";import{alphabetically as e,alphabeticallyBase as l,numerically as c,chronologically as i,combine as t,createCompareFunction as n}from"@antoniovdlc/sort";var m={sum:o,average:a,groupBy:r},p={alphabetically:e,alphabeticallyBase:l,numerically:c,chronologically:i,combine:t,createCompareFunction:n};export{m as reduce,p as sort}; | ||
import{pick as o,select as a}from"@antoniovdlc/map";import{sum as r,average as e,groupBy as l}from"@antoniovdlc/reduce";import{alphabetically as c,alphabeticallyBase as i,numerically as t,chronologically as m,combine as n,createCompareFunction as p}from"@antoniovdlc/sort";var u={pick:o,select:a},v={sum:r,average:e,groupBy:l},y={alphabetically:c,alphabeticallyBase:i,numerically:t,chronologically:m,combine:n,createCompareFunction:p};export{u as map,v as reduce,y as sort}; |
{ | ||
"name": "arr-fns", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Utility functions for arrays.", | ||
@@ -58,5 +58,6 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@antoniovdlc/reduce": "0.1.2", | ||
"@antoniovdlc/map": "0.1.0", | ||
"@antoniovdlc/reduce": "0.1.3", | ||
"@antoniovdlc/sort": "1.2.3" | ||
} | ||
} |
@@ -21,2 +21,3 @@ # arr-fns | ||
This package encompasses other utility libraries around arrays, namely: | ||
- [@antoniovdlc/map](https://www.npmjs.com/package/@antoniovdlc/map) | ||
- [@antoniovdlc/reduce](https://www.npmjs.com/package/@antoniovdlc/reduce) | ||
@@ -31,7 +32,7 @@ - [@antoniovdlc/sort](https://www.npmjs.com/package/@antoniovdlc/sort) | ||
```js | ||
import { reduce, sort } from "arr-fns"; | ||
import { map, reduce, sort } from "arr-fns"; | ||
``` | ||
*- or -* | ||
```js | ||
const { reduce, sort } = require("arr-fns"); | ||
const { map, reduce, sort } = require("arr-fns"); | ||
``` | ||
@@ -38,0 +39,0 @@ |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
5784
7.37%25
25%42
2.44%3
50%