js-src/reproject/index.js
// Simplistic shallow clone that will work for a normal GeoJSON object.
Simplistic shallow clone that will work for a normal GeoJSON object.
Simplistic shallow clone that will work for a normal GeoJSON object .
function clone(obj) {
    if (null == obj || 'object' !== typeof obj) return obj;
    var copy = obj.constructor();
    for (var attr in obj) {
        if (obj.hasOwnProperty(attr)) copy[attr] = obj[attr];
    }
    return copy;
}
function clone ( obj ) { if ( null == obj || 'object' !== typeof obj ) return obj ; var copy = obj . constructor ( ) ; for ( var attr in obj ) { if ( obj . hasOwnProperty ( attr ) ) copy [ attr ] = obj [ attr ] ; } return copy ; }
Simplistic shallow clone that will work for a normal GeoJSON object.
Simplistic shallow clone that will work for a normal GeoJSON object .