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.

8 lines (7 loc) 213 B
/** * Determines if the object is a routed token by hasOwnProperty * of type and named */ module.exports = function isRoutedToken(obj) { return obj.hasOwnProperty('type') && obj.hasOwnProperty('named'); };