Skip to content

Commit 91f88b6

Browse files
committed
Chain `emitter.into(target) for #3 like the other emitter methods.
1 parent 2bc7d93 commit 91f88b6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/index.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,13 @@
5050
};
5151

5252
/**
53-
* @this {Energy|Object|Function} source emitter
54-
* @param {Object|Function} target to convert into emitter
55-
* @return {Object|Function} target converted into emitter
53+
* @this {Object|Energy|Function} source emitter or emitter-like
54+
* @param {Object|Energy|Function} target to convert into emitter
55+
* @return {Object|Energy|Function} source for chaining
5656
*/
5757
emitter['into'] = function(target) {
58-
return defaults(target, this);
58+
defaults(target, this);
59+
return this;
5960
};
6061

6162
/**

0 commit comments

Comments
 (0)