parent
eaeb5985ac
commit
1387c7d1f7
@ -407,7 +407,7 @@ var user = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function isSensitive(value, key) { return key == 'SSN' }
|
function isSensitive(value, key) { return key == 'SSN' }
|
||||||
var result = u({ user: u.omitBy(isSensitive, user);
|
var result = u({ user: u.omitBy(isSensitive) }, user);
|
||||||
|
|
||||||
expect(result).to.eql({ user: { email: 'john@aol.com', username: 'john123', authToken: '1211..' } });
|
expect(result).to.eql({ user: { email: 'john@aol.com', username: 'john123', authToken: '1211..' } });
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user