JS syntax question

I see in a React-Strap code something like this:

doSth = () => {
        return this.state.myapp.players
            .filter(player => player.name !== undefined)
            .length === 3

What’s the name of this syntax with methods starting with a dot? I went over the whole w3school doc and couldn’t see anything similar.

It is called Method Chaining.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.