JSFiddle - React, Tailwind, and code Playground

by xavierm02

HTML

<script src="//xjslib.github.com/src/XJSLib.js"></script>
<script src="//xjslib.github.com/src/XJSMathematics/src/XJSMathematics.js"></script>
<script src="//xjslib.github.com/src/XJSMathematics/src/types/XJSMathematicalObject.js"></script>
<script src="//xjslib.github.com/src/XJSMathematics/src/types/XJSRationalNumber.js"></script>
<script src="//xjslib.github.com/src/XJSMathematics/src/types/XJSInteger.js"></script>
<script src="//xjslib.github.com/src/XJSMathematics/src/types/XJSMatrix.js"></script>

JavaScript

console.log( '----------' );
var a = [ ];
var o = { };
var arrayToString = [ ].toString;
console.log( new XJSMatrix( [
    [ '', 'object', 'array' ],
    [ '\'__proto__\' in thing', '__proto__' in o, '__proto__' in a ],
    [ 'thing.hasOwnProperty( \'__proto__\'', o.hasOwnProperty( '__proto__' ), a.hasOwnProperty( '__proto__' ) ],
    [ 'Object.getOwnPropertyDescriptor( thing, \'__proto__\' )', Object.getOwnPropertyDescriptor( o, '__proto__' ), Object.getOwnPropertyDescriptor( a, '__proto__' ) ]
] ).map( function ( thing ) {
    return thing + '';
} ).toString( ) );