queryjson

1.0.2 • Public • Published

queryjson

An example for an object to remove the item where the value is null or " ".

example

var queryjson = require('queryjson');

const param = {
    userName:'11',
    password:'11',
    email:'11',
    tel:'1',
    userType:''
};

const cc = queryjson.queryjson(param);

// cc = {
    userName:'11',
    password:'11',
    email:'11',
    tel:'1'
 }
 
 const dd = queryjson.queryjsontostring(param)
 
 // dd = 'userName=11&password=11&email=11&tel=1'

Readme

Keywords

none

Package Sidebar

Install

npm i queryjson

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

18.6 kB

Total Files

13

Last publish

Collaborators

  • zhengxudongs