8000 GitHub - otomer/algoritool: algoritool - tech tools for algorithm design
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

otomer/algoritool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
8000
 
 
 
 
 
 
 
 

Repository files navigation



algoritool - A sort of glorified dice-throwing

algoritool - tech tools for algorithm design

npm npm bundle size (minified) npm dependents Downloads


Introduction

Algorithm Tools are useful small algorithms packaged in a way that make it easy to re-use them in other Algorithms.

Install

$ npm install algoritool

Usage

const algoritool = require("algoritool");

// Specific example:
const { ArrayManipulation } = require("algoritool");
const mySort = array => ArrayManipulation.clone(array).sort();

Methods

Array Creation

sequence: (len: any, from?: number) => number[]

Array Conversion

toObject: (arr: any) => any;

Array Manipulation

chunksSplit: (arr: any, chunkSize: any) => any[]
clone: (arr: any) => any[]
empty: (arr: any) => any
permutations: (arr: any) => any
removeDuplicates: (arr: any) => any[]
shuffle: (arr: any) => any[]

Array Sorting

byAttribute: (arr: any, attr: any, asc?: boolean) => any;

Array Validation

isArray: (value: any) => boolean;

String Manipulation

repeat: (str: any, times: any) => string;

ForTheBadge built-with-love

About

algoritool - tech tools for algorithm design

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0