Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
367 bytes
|
Line | |
---|
1 | function _defineProperty(obj, key, value) {
|
---|
2 | if (key in obj) {
|
---|
3 | Object.defineProperty(obj, key, {
|
---|
4 | value: value,
|
---|
5 | enumerable: true,
|
---|
6 | configurable: true,
|
---|
7 | writable: true
|
---|
8 | });
|
---|
9 | } else {
|
---|
10 | obj[key] = value;
|
---|
11 | }
|
---|
12 |
|
---|
13 | return obj;
|
---|
14 | }
|
---|
15 |
|
---|
16 | module.exports = _defineProperty;
|
---|
17 | module.exports["default"] = module.exports, module.exports.__esModule = true; |
---|
Note:
See
TracBrowser
for help on using the repository browser.