ic-utils

1.0.16 • Public • Published

ic-utils

A common assertion library for daily development.

Install

npm i ic-utils || yarn add ic-utils

Methods

isString(value)

returned true if the type of a value is string, or false

isPureObj(value)

returned true if the type of a value is object({}), or false

isFn(value)

returned true if the type of a value is function, or false

isBool(value)

returned true if the type of a value is boolean, or false

isArray(value)

returned true if the type of a value is Array, or false

Constants

isIOS

returned true if current platform is IOS, or false

isAndroid

returned true if current platform is Android, or false

isWechat

returned true if current platform is wechat(weixin), or false

isMobile

returned true if current device is mobile(include ipad), or false

Readme

Keywords

Package Sidebar

Install

npm i ic-utils

Weekly Downloads

6

Version

1.0.16

License

ISC

Unpacked Size

22.4 kB

Total Files

10

Last publish

Collaborators

  • qschqd