1.0.4 • Published 4 years ago

butter-js-tools v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

butter-js-tools


A javascript tools library


Installation

using npm:

npm i -g npm
npm i --save butter-js-tools

Usage

The $b object is exposed on the global object, and all APIs are mounted on this object


API List

  • isFunction(method)

    • Description: Check if the parameter is a function type

    • Return: Boolean

    • Arguments Required: yes

  • isArray(array)

    • Description: Check if the parameter is an array type

    • Return: Boolean

    • Arguments Required: yes

  • isFilledArray(array)

    • Description: Check that the parameter is an array type and is not an empty array

    • Return: Boolean

    • Arguments Required: yes

  • getQueryParam(name)

    • Description: Returns the parameter value of the corresponding query parameter on the browser address

    • Return: String

    • Arguments Required: yes

  • getAllQueryParams()

    • Description: Returns the object of all parameters and parameter values ​​on the browser address

    • Return: String

    • Arguments Required: no


EXAMPLE

import $ from 'butter-js-tools'

$.isFunction(()=>{})

// or

window.$b.isArray([])

MY E-MAIL: butter_npm@outlook.com

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago