@aryth/rand
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -61,2 +61,11 @@ 'use strict'; | ||
const STR_ASC = (a, b) => a.localeCompare(b); | ||
const STR_DESC = (a, b) => b.localeCompare(a); | ||
const NUM_ASC = (a, b) => a - b; | ||
const NUM_DESC = (a, b) => b - a; | ||
exports.NUM_ASC = NUM_ASC; | ||
exports.NUM_DESC = NUM_DESC; | ||
exports.STR_ASC = STR_ASC; | ||
exports.STR_DESC = STR_DESC; | ||
exports.Shuffler = Shuffler; | ||
@@ -63,0 +72,0 @@ exports.flop = flop; |
@@ -57,2 +57,7 @@ const { | ||
export { Shuffler, flop, flopIndex, rand, randInt, randIntBetw, shuffle }; | ||
const STR_ASC = (a, b) => a.localeCompare(b); | ||
const STR_DESC = (a, b) => b.localeCompare(a); | ||
const NUM_ASC = (a, b) => a - b; | ||
const NUM_DESC = (a, b) => b - a; | ||
export { NUM_ASC, NUM_DESC, STR_ASC, STR_DESC, Shuffler, flop, flopIndex, rand, randInt, randIntBetw, shuffle }; |
{ | ||
"name": "@aryth/rand", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "A math util library", | ||
@@ -32,3 +32,3 @@ "main": "dist/index.cjs.js", | ||
"homepage": "https://github.com/hoyeungw/aryth#readme", | ||
"gitHead": "0d0fef5cdf5a14fb177a30ecffe1bcecda21c4f2" | ||
"gitHead": "51f3570a8b0b6766c85f722777a8a1fad270320c" | ||
} |
@@ -1,2 +0,2 @@ | ||
# @aryth/rank | ||
# @aryth/rand | ||
@@ -33,3 +33,3 @@ [![npm version][badge-npm-version]][url-npm] | ||
```console | ||
$ npm install @aryth/rank | ||
$ npm install @aryth/rand | ||
``` | ||
@@ -36,0 +36,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6533
114