"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/es5-ext/object/key-of.js" (8 Mar 2017, 271 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 'use strict';
    2 
    3 var eq   = require('./eq')
    4   , some = require('./some');
    5 
    6 module.exports = function (obj, searchValue) {
    7     var r;
    8     return some(obj, function (value, name) {
    9         if (eq(value, searchValue)) {
   10             r = name;
   11             return true;
   12         }
   13         return false;
   14     }) ? r : null;
   15 };