Specification:
Map.prototype.map = function(cb, context) { return new Map(Array.from(this).map(cb, context)); }
Map.prototype.filter = function(cb, context) { return new Map(Array.from(this).filter(cb, context)); }
Usage example:
diff --git a/pkg/commons-atom/ActiveEditorRegistry.js b/pkg/commons-atom/ActiveEditorRegistry.js | |
index ed71a95..a957228 100644 | |
--- a/pkg/commons-atom/ActiveEditorRegistry.js | |
+++ b/pkg/commons-atom/ActiveEditorRegistry.js | |
@@ -121,10 +121,8 @@ export default class ActiveEditorRegistry<T: Provider, V> { | |
if (editor == null) { | |
return Observable.of(editor); | |
} | |
- return Observable.concat( | |
- Observable.of(editor), |
Specification:
Map.prototype.map = function(cb, context) { return new Map(Array.from(this).map(cb, context)); }
Map.prototype.filter = function(cb, context) { return new Map(Array.from(this).filter(cb, context)); }
Usage example:
function(e, t, n) { | |
"use strict"; | |
function o() { | |
this._callbacks = null, this._contexts = null | |
} | |
var r = e(115), | |
a = e(147), | |
i = e(25); | |
e(139); |
// Solution #1: Generic Override (like CSS) | |
var ButtonGroup = React.createClass({ | |
render() { | |
return <div>{this.props.buttons.map((btn, i) => | |
<Button style={{ | |
...(i !== 0 && {marginLeft: 0}) | |
...(i !== this.props.buttons.length - 1 && {marginRight: 0}) | |
}} /> | |
)}</div>; |
// copy(JSON.stringify($$('.subtest').map(elem => [].slice.apply(elem.querySelectorAll('td')).slice(3).map(e => e.innerText)))) | |
DATA = [["Flag[6]","Yes","No","No","No","No[7]","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","Yes","No","No","No","No","No","No","No","No","No","Yes","No","No","No","No","No","No","No","No","No","No"],["Flag[6]","No","No","No","No","No[7]","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","Yes","No","No","No","No","No","No","No","No","No","Yes","No","No","No","No","No","No","No","No","No","No"],["Yes","Yes","Yes","Yes","No","Yes","No","No","No","Flag","Flag","Yes","Yes","Yes","Yes","Yes","Yes","Yes","Yes","Yes","Yes","Yes","Yes","Yes","Yes","Yes","No","No","No","No","No","No |
// copy(JSON.stringify($$('.subtest').map(elem => [].slice.apply(elem.querySelectorAll('td')).slice(3).map(e => e.innerText)))) | |
DATA = [["Flag[6]","Yes","No","No","No","No[7]","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","Yes","No","No","No","No","No","No","No","No","No","Yes","No","No","No","No","No","No","No","No","No","No"],["Flag[6]","No","No","No","No","No[7]","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","No","Yes","No","No","No","No","No","No","No","No","No","Yes","No","No","No","No","No","No","No","No","No","No"],["Yes","Yes","Yes","Yes","No","Yes","No","No","No","Flag","Flag","Yes","Yes","Yes","Yes","Yes","Yes","Yes","Yes","Yes","Yes","Yes","Yes","Yes","Yes","Yes","No","No","No","No","No","No |
-[RCTBridgeTests testHookRegistration] | |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | |
2015-12-23 18:24:18.940 [info][tid:main][RCTDevMenu.m:322] RCTSourceCode module scriptURL has not been set | |
2015-12-23 18:24:19.036 [info][tid:main][RCTDevMenu.m:322] RCTSourceCode module scriptURL has not been set | |
/Users/travis/build/facebook/react-native/Examples/UIExplorer/UIExplorerUnitTests/RCTBridgeTests.m:157: ((remoteModuleConfig) != nil) failed: | |
154 } | |
155 }]; | |
156 | |
157 XCTAssertNotNil(remoteModuleConfig); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
-[RCTBridgeTests testCallNativeMethod] | |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | |
2015-12-23 18:14:21.692 [info][tid:main][RCTDevMenu.m:322] RCTSourceCode module scriptURL has not been set | |
2015-12-23 18:14:21.692 [info][tid:main][RCTDevMenu.m:322] RCTSourceCode module scriptURL has not been set | |
2015-12-23 18:14:21.693 [info][tid:main][RCTDevMenu.m:322] RCTSourceCode module scriptURL has not been set | |
2015-12-23 18:14:21.693 [info][tid:main][RCTDevMenu.m:322] RCTSourceCode module scriptURL has not been set | |
2015-12-23 18:14:21.693 [info][tid:main][RCTDevMenu.m:322] RCTSourceCode module scriptURL has not been set | |
2015-12-23 18:14:21.694 [info][tid:main][RCTDevMenu.m:322] RCTSourceCode module scriptURL has not been set | |
Invalid connection: com.apple.coresymbolicationd | |
/Users/travis/build/facebook/react-native/Examples/UIExplorer/UIExplorerUnitTests/RCTBridgeTests.m:186: failed: caught "NSInvalidArgumentException", "*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil obj |
JedWatson/classnames (2650855 dls, 1465 stars) | |
yannickcr/eslint-plugin-react (2077066 dls, 710 stars) | |
rackt/react-router (1833204 dls, 9050 stars) | |
facebook/react-dom (782024 dls, 33044 stars) | |
gaearon/react-hot-loader (708042 dls, 3250 stars) | |
rackt/redux (568969 dls, 10743 stars) | |
rackt/react-redux (495498 dls, 1509 stars) | |
jsdf/coffee-react-transform (463488 dls, 380 stars) | |
JedWatson/react-input-autosize (455277 dls, 107 stars) | |
reflux/reflux (393281 dls, 4316 stars) |
Total: 24496 | |
#general 8785 | |
#react-native 2950 | |
#redux 2018 | |
#discord-help 1159 | |
#rnplay 1079 | |
#relay 1068 | |
#need-help 982 | |
#random 760 |