Skip to content

Conversation

@chilipenko
Copy link
Contributor

There is a note "If toString or valueOf returns an object, then it’s ignored" later in the text, but I believe it's better to add this condition directly to the sequence of selecting the appropriate method. In this case it will be easier to learn and will match the steps described in the specification (https://tc39.es/ecma262/#sec-ordinarytoprimitive).

@iliakan iliakan merged commit f0f4366 into javascript-tutorial:master Aug 14, 2022
@chilipenko chilipenko deleted the patch-1 branch August 17, 2022 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants