simple utils for javascriptr
📚Document ・
🔎 Demos ・
🔬 Playground
- No need Dependency
npm install helping-js --save
yarn add helping-js
- You can import in your js file es6 (modules,vue,react,...)
import { isString } from 'helping-js/core/types'
console.log(isString('test')) // true
console.log(isString(true)) // false
- You can import in your js file es5 (nodejs)
var { isString } = require('helping-js/core/types')
console.log(isString('test')) // true
console.log(isString(true)) // false
- You can usage from CDN (only modules)
import { isString } from 'https://unpkg.com/browse/helping-js/core/types.js'
console.log(isString('test')) // true
console.log(isString(true)) // false
Example usage:
import { RX_HASH } from "helping-js/core/regex";
const regex = RX_HASH;
const str = '#test';
console.log(regex.test(str)); // Output: true