1.0.8 • Published 2 years ago

@lissome/util v1.0.8

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

@lissome/util

The Util library Lissome.js provides lots of utility functions in daily coding.

It's written by TypeScript which can be friendly used in IDE.

Installation

npm install @lissome/util

Usage

Lang

methodsdescription
isStringChecks if value is String
isBooleanChecks if value is a Boolean value
isFalseChecks if value is false
isTrueChecks if value is true
isObjectChecks if value is the language type of Object, not Null
isPlainObjectChecks if value is a plain object
isEmptyObjectChecks if value is an empty object, without key/value pairs
isArrayChecks if value is an Array
isEmptyArrayChecks if value is an empty array
isFunctionChecks if value is a Function
isPromiseChecks if value is a Promise or thenable function
isUndefinedChecks if value is Undefined
isDefinedChecks if value is an defined value, not Undefined or Null
equalChecks two object or array is equal by value

String

methodsdescription
camelCaseConverts string to camel case
pascalCaseConverts string to pascal (big camel) case
snakeCaseConverts string to snake case
kebabCaseConverts string to kebab case

Object

methodsdescription
snakeCaseKeysProcess keys of Object or Object item of Array to snake case deeply
camelCaseKeysProcess keys of Object or Object item of Array to camel case deeply
atGet value by path in an Object or Array

Methods

methodsdescription
copyTextcopy text to clipboard
1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago