discourse/app/assets/javascripts/ember-addons/utils/is-descriptor.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
188 B
JavaScript
Raw Normal View History

2015-08-12 05:34:02 +08:00
export default function isDescriptor(item) {
return (
item &&
typeof item === "object" &&
"writable" in item &&
"enumerable" in item &&
"configurable" in item
);
}