I hereby claim:
- I am yaditya on github.
- I am yovib (https://keybase.io/yovib) on keybase.
- I have a public key ASCw_ZbI3iCWybpk3Q3YASDwpKzKU90phohIgjtJcu3UNQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
If you want to view all released versions of an npm package, there’s an easy way to do it: | |
npm show react-native@* version | |
However, this doesn’t show pre-release versions. If you want to see everything, there’s an equally easy (but undocumented) command: | |
npm show react-native versions --json | |
https://gist.github.com/AvnerCohen/4051934 | |
See all versions of a node module | |
--------------------------------- |
#set($componentName = $NAME.substring(0,1).toUpperCase()+$NAME.substring(1)) | |
import React, {Component} from 'react'; | |
class ${componentName} extends Component { | |
constructor(props, context) { | |
super(props, context); | |
} | |
render() { | |
return ( |
Source: https://leanpub.com/understandinges6/read/ | |
includes(), startsWith(), endsWith() | |
--------------------------------------- | |
var msg = "Hello world!"; | |
console.log(msg.startsWith("Hello")); // true | |
console.log(msg.endsWith("!")); // true | |
console.log(msg.includes("o")); // true |