1.4.7 • Published 8 months ago
structkit v1.4.7
Structkit
Download
To download this JS library and install in your local library
Using npm to install in your project folder:
$ npm i structkit
How 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)
keep in mind _stk
is used as global library at html
CJS, ESM and TS use this code below
repeat("1",20)
Partial sampe you can use as your utitlity function
first([2,3,4,5])// 2
last([2,3,4,5])// 5
get start and end of array index
arraySlice([1,2],1)// [2]
arraySum([1,2])// 3.00