|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
477 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|---|
| 4 |
|
|---|
| 5 | const isEqualsSameValueZero = require('../../_internal/isEqualsSameValueZero.js');
|
|---|
| 6 |
|
|---|
| 7 | const assignValue = (object, key, value) => {
|
|---|
| 8 | const objValue = object[key];
|
|---|
| 9 | if (!(Object.hasOwn(object, key) && isEqualsSameValueZero.isEqualsSameValueZero(objValue, value)) || (value === undefined && !(key in object))) {
|
|---|
| 10 | object[key] = value;
|
|---|
| 11 | }
|
|---|
| 12 | };
|
|---|
| 13 |
|
|---|
| 14 | exports.assignValue = assignValue;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.