UNPKG
fzo
Version:
latest (0.1.3)
0.1.3
0.1.2
0.0.2
0.0.1
fzo is simply freeze object library
github.com/rewrite0w0/fzo
rewrite0w0/fzo
fzo
/
src
/
fzo.js
10 lines
(9 loc)
•
226 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
module
.
exports
=
function
fzo
(
obj
) {
if
(
typeof
obj ===
'object'
&& !
Object
.
isFrozen
(obj)) {
Object
.
keys
(obj).
forEach
(
(
idx
) =>
fzo
(obj[idx]));
Object
.
freeze
(obj); }
else
{
return
; }
return
obj; };