falcor-router
Version:
A router DataSource constructor for falcor that allows you to model all your cloud data sources as a single JSON resource.
15 lines (13 loc) • 350 B
JavaScript
/**
* Takes in a path and ensures its not a zero length path, meaning
* that no empty arrays or bad ranges can exist.
*
* valid: [A, [B]. {to:1}]
* invalid: [A, [], {to:1}]
*
* This happens when performing src/operations/matcher/strip/strip.js
* @param {Array} path
* @return {Boolean}
*/
module.exports = function isValidPath(path) {
};