Package Exports
- structkit
- structkit/src/node.cjs.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (structkit) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Structkit
Download
To download this JS library and install in your local library
Using npm to install in your project folder:
$ npm i structkitHow 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])// 2last([2,3,4,5])// 5get start and end of array index
arraySlice([1,2],1)// [2]arraySum([1,2])// 3.00