This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function test() { | |
console.log('this is a test') | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function() { | |
console.log('test') | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let a = 5 | |
let b = a | |
console.log(a) // => 5 | |
console.log(b) // => 5 | |
a = 1 | |
console.log(a) // => 1 | |
console.log(b) // => 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let a = {language: "Javascript"} | |
let b = a | |
console.log(a) // => {language: "Javascript"} | |
console.log(b) => {language: "Javascript"} | |
a.language = "Ruby" | |
console.log(a) // => {language: "Ruby"} | |
console.log(b) // => {language: "Ruby"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sortBySearchTerm = () => { | |
return this.props.transactions.filter(transaction => { | |
return transaction.category.includes(this.props.searchTerm) || transaction.description.includes(this.props.searchTerm) | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sortBySearchTerm = () => { | |
const searchBy = this.props.searchTerm | |
const regexp = new RegExp(searchBy, 'gi') | |
return this.props.transactions.filter(transaction => { | |
return transaction.category.match(regexp) || transaction.description.match(regexp) | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
state = { | |
stepsEnabled: true, | |
initialStep: 0, | |
steps: [ | |
{ | |
element: '.step1', | |
intro: 'Contains articles based on your interests.', | |
}, | |
{ | |
element: '.step2', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span className='step3'><Icon size='large' color='blue' name='facebook official' />{this.renderFbShares()}</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Steps | |
enabled={this.state.stepsEnabled} | |
steps={this.state.steps} | |
initialStep={this.state.initialStep} | |
onExit={this.onExit} | |
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onExit = () => { | |
this.setState({ | |
stepsEnabled: false | |
}) | |
} |
OlderNewer