1.3.3 • Published 7 years ago
extendable-immutable v1.3.3
Extendable Immutable.js
About
Ever wished that you could have OrderedMaps, Maps or Lists with extra methods,
that make your life easier? .ofCourse()
!
- Behaves like normal Immutable.js data structures
- Doesn't break Immutable.js' inheritance (*.is and instanceof still pass!)
Getting Started
Installing the latest version via npm takes just a second:
npm install --save extendable-immutable
Import what you need:
import { OrderedMap } from 'extendable-immutable'
class Collection extends OrderedMap {
// ...
Quick Intro
import { OrderedMap } from 'extendable-immutable'
class Collection extends OrderedMap {
static isCollection(val) {
return val && val instanceof Collection;
}
doMagic() {
return this.map(x => x.set("magic", true));
}
}
const magic = new Collection();
magic instanceof Immutable.OrderedMap; // true
Immutable.OrderedMap.isOrderedMap(magic); // true
1.3.3
7 years ago
1.3.2
7 years ago
1.3.1
7 years ago
1.3.0
8 years ago
1.2.1
8 years ago
1.2.0
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.13
8 years ago
1.0.12
8 years ago
1.0.11
8 years ago
1.0.10
8 years ago
1.0.9
8 years ago
1.0.8
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago