UNPKG

falcor-router

Version:

A router DataSource constructor for falcor that allows you to model all your cloud data sources as a single JSON resource.

10 lines (7 loc) 253 B
var falcorPathUtils = require('falcor-path-utils'); function getPathsCount(pathSets) { return pathSets.reduce(function(numPaths, pathSet) { return numPaths + falcorPathUtils.pathCount(pathSet); }, 0); } module.exports = getPathsCount;