Skip to content

Commit

Permalink
move re-exports to top of utils
Browse files Browse the repository at this point in the history
  • Loading branch information
snapwich committed Jul 24, 2019
1 parent 01ecded commit 2b242eb
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import includes from 'core-js/library/fn/array/includes';
import { parse } from './url';
const CONSTANTS = require('./constants');

export { default as deepAccess } from 'dlv';
export { default as deepSetValue } from 'dset';

var tArr = 'Array';
var tStr = 'String';
var tFn = 'Function';
Expand Down Expand Up @@ -958,21 +961,6 @@ export function groupBy(xs, key) {
}, {});
}

/**
* deepAccess utility function useful for doing safe access (will not throw exceptions) of deep object paths.
* @param {Object} obj The object containing the values you would like to access.
* @param {string|number} path Object path to the value you would like to access. Non-strings are coerced to strings.
* @returns {*} The value found at the specified object path, or undefined if path is not found.
*/
export { default as deepAccess } from 'dlv';

/**
* @param {Object} obj The object to set a deep property value in
* @param {(string|Array.<string>)} path Object path to the value you would like ot set.
* @param {*} value The value you would like to set
*/
export { default as deepSetValue } from 'dset';

/**
* Returns content for a friendly iframe to execute a URL in script tag
* @param {string} url URL to be executed in a script tag in a friendly iframe
Expand Down

0 comments on commit 2b242eb

Please sign in to comment.