@ponsetya/core
v1.0.0
Published
Next-generation JavaScript helpers.
Maintainers
Readme
They are the most frequently used and needed lightweight utility tools in javascript-based projects.
You can use the media and library independently.
Installation
For using the yarn package manager.
yarn add @ponsetya/coreFor using the npm.
npm install @ponsetya/coreImport
By default you can include all api and functions.
import ponsetya from '@ponsetya/core'Use APIs
import { Array } '@ponsetya/core'
const arr = ['x', 'y', 'z']
Array.remove(arr, 1) // ['x', 'z']Use helpers
import { classnames } '@ponsetya/core'
const className = classnames('foo', 'bar', {
'foo-bar': false,
'foo-bar--status': 'error',
})
console.log(className) // 'foo bar foo-bar--status-error'License
Released under the MIT License.
