Skip to content

some functions help you save time processing, easy to use!

License

Notifications You must be signed in to change notification settings

lh0x00/helper-fn

Repository files navigation

helper-fn

npm version npm downloads github issues build status greenkeeper badge

some functions help you save time processing, easy to use!

install

# use npm
$ npm install helper-fn

# or yarn
$ yarn add helper-fn

usage

// default import
import { sliceObjectByKeys, memoize } from 'helper-fn'

// another way to reduce size
import sliceObjectByKeys from 'helper-fn/dist/sliceObjectByKeys'
import memoize from 'helper-fn/dist/memoize'

functions

sliceObjectByKeys

clone object from another object by keys, read more

import { sliceObjectByKeys } from 'helper-fn' //use  default import

import sliceObjectByKeys from 'helper-fn/dist/sliceObjectByKeys' // or reduce size

memoize

function to memoization remembers the latest invocation, read more

import { memoize } from 'helper-fn' //use  default import

import memoize from 'helper-fn/dist/memoize' // or reduce size

capitalizeFirstLetter

capitalize first letter read more

import { capitalizeFirstLetter } from 'helper-fn' //use  default import

import capitalizeFirstLetter from 'helper-fn/dist/capitalizeFirstLetter' // or reduce size

excludeObjectByKeys

clone object from another object and exclude by keys, read more

import { excludeObjectByKeys } from 'helper-fn' //use  default import

import excludeObjectByKeys from 'helper-fn/dist/excludeObjectByKeys' // or reduce size

regexStringParser

parse string with special characters to regex format read more

import { regexStringParser } from 'helper-fn' //use  default import

import regexStringParser from 'helper-fn/dist/regexStringParser' // or reduce size

About

some functions help you save time processing, easy to use!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published