structkit v1.4.843
Structkit
Javascript framework in using functional syntax for programmer.
Why Structkit
A Javascript library that make easier in working with arrays, number,object, String and etc.
Download
To download this JS library and install in your local library
Using npm to install in your project folder:
$ npm i structkitDue to conflict in Typescript and ES, it was decided to separate in separate package for typescript(Still working in progess)
$ npm i structkit-tsHow to import the Library
In a browser :
<script src="structkit-full.iife.js"></script>Import on cjs
const {repeat} = require('structkit');Import on ESM or TS
import {repeat} from 'structkit';Example
In a browser
_stk.repeat("1",20)
//11111111111111111111keep in mind _stk is used as global library at html
CJS, ESM and TS use this code below
repeat("1",20)
//11111111111111111111If you are familiar in curry function, good thing structkit is now also supported.
test = repeat(__,20)
test("1")
//11111111111111111111In the example you noticed that we can apply and arguments if we are unsure of possible that you need to pass as well no need to create a function just for value only
Partial sampe you can use as your utitlity function
first([2,3,4,5])// 2last([2,3,4,5])// 5get start and end of array index
arraySlice([1,2],1)// [2]arraySum([1,2])// 3