File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,14 @@ function escapeUnsafeChars(unsafeChar) {
32
32
}
33
33
34
34
function deleteFunctions ( obj ) {
35
- var functionKeys = [ ]
36
- for ( var key in obj ) {
37
- if ( typeof obj [ key ] === ' function' ) {
38
- functionKeys . push ( key ) ;
39
- }
35
+ var functionKeys = [ ] ;
36
+ for ( var key in obj ) {
37
+ if ( typeof obj [ key ] === " function" ) {
38
+ functionKeys . push ( key ) ;
39
+ }
40
40
}
41
- for ( var i = 0 ; i < functionKeys . length ; i ++ ) {
42
- delete obj [ functionKeys [ i ] ]
41
+ for ( var i = 0 ; i < functionKeys . length ; i ++ ) {
42
+ delete obj [ functionKeys [ i ] ] ;
43
43
}
44
44
}
45
45
@@ -143,8 +143,8 @@ module.exports = function serialize(obj, options) {
143
143
}
144
144
145
145
// Check if the parameter is function
146
- if ( options . ignoreFunction && typeof obj === ' function' ) {
147
- obj = undefined ;
146
+ if ( options . ignoreFunction && typeof obj === " function" ) {
147
+ obj = undefined ;
148
148
}
149
149
// Protects against `JSON.stringify()` returning `undefined`, by serializing
150
150
// to the literal string: "undefined".
You can’t perform that action at this time.
0 commit comments