@nichoth/events
Advanced tools
+1
-1
| { | ||
| "name": "@nichoth/events", | ||
| "version": "3.1.1", | ||
| "version": "3.1.2", | ||
| "description": "Event emitter and helpers", | ||
@@ -5,0 +5,0 @@ "directories": { |
+4
-1
@@ -26,2 +26,5 @@ # events  | ||
| ### Bus.flatten | ||
| Get an array of the leaf node values of an object of any shape, for example the return value of `Bus.createEvents`. | ||
| It's recommended to use the `.flatten` static function to get the event name values after calling `.createEvents`. Or, if you pass in anything that is not an array, the constructor will call `.flatten` on it. | ||
@@ -40,3 +43,3 @@ ```js | ||
| const bus = new Bus(Bus.flattern(events)) | ||
| const bus = new Bus(Bus.flatten(events)) | ||
| // is the same as | ||
@@ -43,0 +46,0 @@ const bust2 = new Bus(events) |
69037
0.19%122
2.52%