lib/as_scala.js
function buffer(arr) {
    if (!Array.isArray(arr)) {
        return;
    }

    var l = new List();
    arr.forEach(function(el) {
        l[syncMethodName("add")](el);
    });
    return convert[syncMethodName("asScalaBuffer")](l);
}
function buffer(arr) {
    if (!Array.isArray(arr)) {
        return;
    }

    var l = new List();
    arr.forEach(function(el) {
        l[syncMethodName("add")](el);
    });
    return convert[syncMethodName("asScalaBuffer")](l);
}
function buffer ( arr ) { if ( ! Array . isArray ( arr ) ) { return ; } var l = new List ( ) ; arr . forEach ( function ( el ) { l [ syncMethodName ( "add" ) ] ( el ) ; } ) ; return convert [ syncMethodName ( "asScalaBuffer" ) ] ( l ) ; }
convert a js array into a buffer
convert a js array into a buffer