addyosmani / addyosmani/es6-equivalents-in-es5
console.log() with strict equivalence
Open
- Dominant language
- No language data
- Stars
- 2.5k
- Forks
- 164
- PR merge metrics
- No merged PRs in 30d
Description
Some of the examples log out using strict equivalence, which could be misleading, as they general log as `false`. Is there a reason the examples use this format?
```
// Object Initializer Shorthand
'use strict';
function getPoint() {
var x = 1;
var y = 10;
return { x: x, y: y };
}
console.log(getPoint() === {
x: 1,
y: 10
}); // false
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.