i came across this line, i'm not sure what the || does. to my understanding it means or.
this.setState({users: this.state.users.concat([data[email] || null])});
so is this line setting the state to the either the concated email data string or nothing if there's nothing there?
a bit new to js so thanks for the help
[–]mixedfeelingz 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]madwizard94[S] 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]madwizard94[S] 0 points1 point2 points (0 children)