0.1.14 • Published 4 years ago

algoritool v0.1.14

Weekly downloads
22
License
MIT
Repository
github
Last release
4 years ago

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

0.1.12

4 years ago

0.1.13

4 years ago

0.1.14

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.4

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago