1.3.0 • Published 2 years ago

fast-helpers.js v1.3.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

fast-helpers.js

UPDATES Everything rewritten in TypeScript, thanks to @greysilly7.

Introducing Range Method

import { range } from "fast-helpers.js";
for (number of range(0, 10)) {
    console.log(number);
}

Introducing Advance Math

import { divide } from 'fast-helpers.js';

divide((number=10, divideByNumber=2, array=null, divideArray=false) // Returns 5;
// Now lets get into whats array and divideArray//

const data = [
    10, 30, 38, 98, 27, 88, 177, 109, 872
]
divide((number=null, divideByNumber=2, array=null, divideArray=false) // this returns an object

// ouput
{
  answer: [
       5,   15,  19,
      49, 13.5,  44,
    88.5, 54.5, 436
  ],
  remainder: [
    0, 0, 0, 0, 1,
    0, 1, 1, 0
  ]
}

Introducing Random

Python has a bulit in module called random why does JavaScript don't have it, Well know it kinda does

import {random} from 'fast-helpers.js/random.ts';

console.log(random.randint(1, 10))
import {random} from 'fast-helpers.js';
const meme = [
    "Very Funny",
    "Yes LOLOL",
    "SHEESH"
]
console.log(random.choice(meme))

Introducing Array Function

We have made few of them but in future alot may come

import { arrayToString, objectToArray } from 'fast-helpers.js'
arrayToString(['Hello', 'World']) //Output "Hello World"
objectToArray({a:1, b:2}) //Output [[a, 1], [b, 2]]
1.3.0

2 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago