Files
test-repo/changelog_unreleased/javascript/14599.md
T

411 B

Add parentheses to head of ExpressionStatement instead of the whole statement (#14599 by @fisker)

// Input
const isArray = (object) => ({}).toString.call(foo) === "[object Array]";

// Prettier stable
const isArray = (object) => ({}.toString.call(foo) === "[object Array]");

// Prettier main
const isArray = (object) => ({}).toString.call(foo) === "[object Array]";