diff options
-rw-r--r-- | index.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -36,6 +36,11 @@ function fromObject(root) { return f(map); }); }; + root.findLinkByRel = function(rel) { + return _.find(this.collection.links, function(link) { + return rel === link.rel; + }); + } return root; } |