Documented u.freeze: code style + clarification

This commit is contained in:
Anson Kao 2016-01-26 21:43:37 -05:00
parent b9571bc8fc
commit 180ca47201

View File

@ -208,7 +208,7 @@ expect(result).to.eql({ person: { name: 'Olivier P.', age: 21 } });
### `u.freeze`
Freeze your initial state to protect against mutations. Does nothing in production.
Freeze your initial state to protect against mutations. Only performs the freezing in development, and returns the original object unchanged in production.
```js
var state = u.freeze({ someKey: "Some Value" })