ducktype.js
function createPrototype (type, options) {
    return new DuckType({
      name: options && options.name || null,
      test: function test (object) {
        return (object instanceof type);
      }
    });
  }
function createPrototype (type, options) {
    return new DuckType({
      name: options && options.name || null,
      test: function test (object) {
        return (object instanceof type);
      }
    });
  }
function createPrototype ( type , options ) { return new DuckType ( { name : options && options . name || null , test : function test ( object ) { return ( object instanceof type ) ; } } ) ; }
Create a ducktype handling a prototype
@param {Object} type   A prototype function
@param {{name: String}} [options]
@returns {*}
Create a ducktype handling a prototype