main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
434 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | 'use strict';
|
---|
| 2 | var uncurryThis = require('../internals/function-uncurry-this');
|
---|
| 3 | var toObject = require('../internals/to-object');
|
---|
| 4 |
|
---|
| 5 | var hasOwnProperty = uncurryThis({}.hasOwnProperty);
|
---|
| 6 |
|
---|
| 7 | // `HasOwnProperty` abstract operation
|
---|
| 8 | // https://tc39.es/ecma262/#sec-hasownproperty
|
---|
| 9 | // eslint-disable-next-line es/no-object-hasown -- safe
|
---|
| 10 | module.exports = Object.hasOwn || function hasOwn(it, key) {
|
---|
| 11 | return hasOwnProperty(toObject(it), key);
|
---|
| 12 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.