1.0.16 • Published 6 years ago

ic-utils v1.0.16

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

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