nl_tokens: Check to see if the first element inside an array is an object and on the same line as the node If the node is not an array then it will return false .
pl_tokens: function isFirstArrayElementOnSameLine ( node ) { if ( node . type === "ArrayExpression" && node . elements [ 0 ] ) { return node . elements [ 0 ] . loc . start . <mask> === node . loc . start . line && node . elements [ 0 ] . type === "ObjectExpression" ; } else { return false ; } }