Sha256: 5c6f42e2d7c8ae01b3fa027c06e2930fad31c33d9469fe5b74a558d69e8fccb3
Contents?: true
Size: 498 Bytes
Versions: 131
Compression:
Stored size: 498 Bytes
Contents
/*! * is-descriptor <https://github.com/jonschlinkert/is-descriptor> * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. */ 'use strict'; var typeOf = require('kind-of'); var isAccessor = require('is-accessor-descriptor'); var isData = require('is-data-descriptor'); module.exports = function isDescriptor(obj, key) { if (typeOf(obj) !== 'object') { return false; } if ('get' in obj) { return isAccessor(obj, key); } return isData(obj, key); };
Version data entries
131 entries across 38 versions & 12 rubygems