helper-function
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

helper-function

Examples

queryBuilder

import { queryBuilder } from "helper-function"

const params = {
	id:null,
  	name:'anmol',
  	dob:undefined,
  	phone:0,
}

console.log(queryBuilder("https://anmol-fzr.web.app/",params))


// result "https://anmol-fzr.web.app?name=anmol"

removeFalsyValues

import { removeFalsyValues } from "helper-function"

const params = {
	id:null,
  	name:'anmol',
  	dob:undefined,
  	phone:0,
}

console.log(removeFalsyValues(params))

// result
// { "name":'anmol' }

Author

Anmol

Package Sidebar

Install

npm i helper-function

Weekly Downloads

0

Version

1.0.2

License

GPL-3.0

Unpacked Size

3.31 kB

Total Files

9

Last publish

Collaborators

  • anmol-fzr