MCPcopy Create free account
hub / github.com/cujojs/poly / getOwnPropertyDescriptor

Function getOwnPropertyDescriptor

object.js:316–325  ·  view source on GitHub ↗
(object, name)

Source from the content-addressed store, hash-verified

314 }
315
316 function getOwnPropertyDescriptor (object, name) {
317 return hasProp(object, name)
318 ? {
319 value: object[name],
320 enumerable: true,
321 configurable: true,
322 writable: true
323 }
324 : undef;
325 }
326
327 function getOwnPropertyNames (object) {
328 return keys(object);

Callers

nothing calls this directly

Calls 1

hasPropFunction · 0.85

Tested by

no test coverage detected