sjl.js
function (object) {
            sjl.throwTypeErrorIfNotOfType(SjlMap.name, 'object', object, 'Object',
                'Only `Object` types allowed.');
            var self = this,
                entry,
                objectIt = new ObjectIterator(object);
            while (objectIt.valid()) {
                entry = objectIt.next();
                self.set(entry.value[0], entry.value[1]);
            }
            return self;
        }
function (object) {
            sjl.throwTypeErrorIfNotOfType(SjlMap.name, 'object', object, 'Object',
                'Only `Object` types allowed.');
            var self = this,
                entry,
                objectIt = new ObjectIterator(object);
            while (objectIt.valid()) {
                entry = objectIt.next();
                self.set(entry.value[0], entry.value[1]);
            }
            return self;
        }
function ( object ) { sjl . throwTypeErrorIfNotOfType ( SjlMap . name , 'object' , object , 'Object' , 'Only `Object` types allowed.' ) ; var self = this , entry , objectIt = new ObjectIterator ( object ) ; while ( objectIt . valid ( ) ) { entry = objectIt . next ( ) ; self . set ( entry . value [ 0 ] , entry . value [ 1 ] ) ; } return self ; }
Add all the `object`'s instance's own property key-value pairs to this instance.
@method sjl.stdlib.SjlMap#addFromObject
@param object {Object} - Object to operate on.
@returns {SjlMap}
Add all the object s instance s own property key - value pairs to this instance .