UNPKG
prop-factory
Version:
latest (1.0.0)
1.0.0
Getter-setter factory utility
github.com/jimf/prop-factory
jimf/prop-factory
prop-factory
/
index.js
15 lines
(11 loc)
•
245 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict'
;
module
.
exports
=
function
(
store
) {
var
prop =
function
(
) {
if
(
arguments
.
length
) { store =
arguments
[
0
]; }
return
store; }; prop.
toJSON
=
function
(
) {
return
store; };
return
prop; };