Comments (2)
These two are very similar in their goals, but differ in the API. seamless-immutable
overloads certain array methods, such as [].map
and [].filter
to return immutable values, but I leave the built-ins alone and instead provide icepick.map(arr, fn)
, icepick.filter(arr, fn)
, etc. functions (similar to how lodash/underscore do it). This is to make interop with other libraries easier -- other libraries might rely on the array built-ins returning mutable collections.
Overall the API is more like mori than a fluent/method-based API.
icepick
doesn't support freezing Date
s currently -- it will leave them as-is, unfrozen. I'm considering converting them to timestamps or ISO date strings. It also will throw if it is used with a collection with circular references -- doing that prevents some nasty bugs.
from icepick.
Thanks a lot! Perhaps it would be useful to add this to the README?
from icepick.
Related Issues (20)
- Is it by design array method like I.push(arr, data) doesn't freeze data HOT 1
- Missing dissocIn. HOT 7
- Doc on github readme wrong lol HOT 2
- icepick.merge() of two identical objects containing an array returns a new object HOT 4
- Documentation unclear about whether icepick adds methods to `Object.prototype` HOT 3
- Add `thru` method to `chain` wrapper HOT 1
- mergeIn HOT 2
- Using icepick.js in browser directly? HOT 11
- `assign` description incorrect? HOT 3
- A typo in README
- Tag is missing for 2.0.0 HOT 1
- Uglify fails on 2.0 with RCA HOT 2
- icepick/fp interface HOT 1
- icepick chain fails with map and filter HOT 2
- Please add a LICENSE file HOT 2
- merge doesn't work with objects that don't have a prototype. HOT 2
- Main entrypoint not compatible with ES5 HOT 3
- Generic "in" operator HOT 1
- Version of Icepick that does not freeze HOT 2
- Order changed by updateIn
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icepick.