Skip to content

Commit

Permalink
Improved docs
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jul 21, 2020
1 parent 9ad9472 commit 0b40fa0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion js/util/data.js
Expand Up @@ -198,7 +198,6 @@ const _normParams = function(params) {
*
* @param {Object} params The object for which the leafs list structure is
* meant to be retrieved.
*
* @returns {Array} The list of leaf node tuples for the provided object,
* as requested for each of the sequences.
*/
Expand Down
9 changes: 9 additions & 0 deletions js/util/url.js
@@ -1,5 +1,14 @@
import { conf } from "./config";

/**
* Encodes the multiple values as and encoded URI component, the
* values can be wither defined as an array (order is preserved)
* or as an object (where sequence order is not preserved).
*
* @param {(Array|Object[])} values The values to be encoded as an
* URI component (like GET params).
* @returns {String} A string with the query encoded values.
*/
export const urlEncode = function(values) {
// constructs the parts array that is going to
// store the multiple and values
Expand Down

0 comments on commit 0b40fa0

Please sign in to comment.