UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

9 lines (6 loc) 201 B
'use strict'; var findKey = require('./find-key'); module.exports = function (obj, cb/*, thisArg, compareFn*/) { var key = findKey.apply(this, arguments); return (key == null) ? key : obj[key]; };