source:
trip-planner-front/node_modules/@babel/runtime/helpers/esm/defineProperty.js@
571e0df
Last change on this file since 571e0df was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 269 bytes |
Line | |
---|---|
1 | export default 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 | } |
Note:
See TracBrowser
for help on using the repository browser.