source:
frontend/node_modules/underscore/modules/_has.js
| Last change on this file was 9af201e, checked in by , 11 days ago | |
|---|---|
|
|
| File size: 222 bytes | |
| Line | |
|---|---|
| 1 | import { hasOwnProperty } from './_setup.js'; |
| 2 | |
| 3 | // Internal function to check whether `key` is an own property name of `obj`. |
| 4 | export default function has(obj, key) { |
| 5 | return obj != null && hasOwnProperty.call(obj, key); |
| 6 | } |
Note:
See TracBrowser
for help on using the repository browser.
