UNPKG
notifyjs
Version:
latest (3.0.0)
3.0.0
2.0.3
2.0.2
2.0.1
2.0.0
1.3.0
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
A handy wrapper for the Web Notifications API
github.com/alexgibson/notify.js
alexgibson/notify.js
notifyjs
/
jspm_packages
/
npm
/
systemjs-plugin-babel@0.0.9
/
babel-helpers
/
defineProperty.js
14 lines
(13 loc)
•
256 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export
default
(
function
(
obj, key, value
)
{
if
(key in obj) { Object.
defineProperty
(obj, key, {
value
: value,
enumerable
:
true
,
configurable
:
true
,
writable
:
true
}); }
else
{ obj[key] = value; }
return
obj; })