UNPKG
error-class-utils
Version:
latest (4.0.1)
4.0.1
4.0.0
3.0.0
2.5.0
2.4.0
2.3.1
2.3.0
2.2.2
2.2.0
2.1.0
2.0.0
1.0.0
0.0.1
Properly create error classes
www.github.com/ehmicky/error-class-utils
ehmicky/error-class-utils
error-class-utils
/
build
/
src
/
set.js
10 lines
(8 loc)
•
160 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
export
const
setNonEnumProp
=(
object
,propName,value)=>{ Object.
defineProperty
(
object
,propName,{ value,
writable
:
true
,
enumerable
:
false
,
configurable
:
true
}) };