UNPKG

sugar

Version:

A Javascript utility library for working with native objects.

14 lines (11 loc) 399 B
'use strict'; var isUndefined = require('../../common/internal/isUndefined'), toQueryString = require('./toQueryString'); function toQueryStringWithOptions(obj, opts) { opts = opts || {}; if (isUndefined(opts.separator)) { opts.separator = '_'; } return toQueryString(obj, opts.deep, opts.transform, opts.prefix || '', opts.separator); } module.exports = toQueryStringWithOptions;