Référence : Liaison de données en ES5, un pas plus loin.
Construit sur l'acquis des billets précédents, ce billet ne contient que l'essentiel : le code.
1 2 3 4 5 6 7 8
| const
kModel = Symbol( 'ObjModel' ),
kGetType = function( Obj ){
return Object.prototype.toString.call( Obj ).match( /\s([a-zA-Z]+)/ )[ 1 ].toLowerCase();
},
kSetModel = function( Obj ){
if ( kGetType( Obj ) === "object" |
...