Alternative to JQuery's param function.
npm install jquery-param-fnjQuery.param() function.Creates a URL query string from an object or array.
``shell`
$ npm install jquery-param-fn --save
javascript
const param = require('jquery-param-fn');
const formData = { name: 'John Doe', age: 38 };
const queryString = param(formData); // name=John%20Doe&age=38fetch('http://example.com?' + queryString).then(function(res) {
...
});
`Test
`shell
$ npm test
`
to check test coverage:
`shell
$ npm run test-coverage
``