1.1.0 • Published 2 years ago

@ponsetya/javascript v1.1.0

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

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/javascript

For using the npm.

npm install @ponsetya/javascript

Import

By default you can include all api and functions.

import javascript from '@ponsetya/javascript'

Use APIs

import { Array } '@ponsetya/javascript'

const arr = ['x', 'y', 'z']

Array.remove(arr, 1) // ['x', 'z']

Use helpers

import { classnames } '@ponsetya/javascript'

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.

1.1.0

2 years ago

1.0.0

2 years ago