pug-php/js-phpize

View on GitHub
examples/and.js

Summary

Maintainability
A
0 mins
Test Coverage
a = [
    2 && null,
    null && 2,
    2 || null,
    null || 2,
    2 && (5 || 3),
    (0 && 6) || 7,
    '' || 'aa'
];

a.push(6) || a.push(7);

return JSON.stringify(a.map(JSON.stringify).join(','));