src/dynamizer.js
function Dynamizer(options) {
  // don"t enforce new
  if (!(this instanceof Dynamizer)) return new Dynamizer(options);

  if (options) {
    this.disableBoolean = options.disableBoolean || false; // maps boolean values to numeric
    this.enableSets = options.enableSets || false;
    // unsure about this option as yet
    this.disableLossyFloat = options.disableLossyFloat || false;
  }
}
function Dynamizer(options) {
  // don"t enforce new
  if (!(this instanceof Dynamizer)) return new Dynamizer(options);

  if (options) {
    this.disableBoolean = options.disableBoolean || false; // maps boolean values to numeric
    this.enableSets = options.enableSets || false;
    // unsure about this option as yet
    this.disableLossyFloat = options.disableLossyFloat || false;
  }
}
function Dynamizer ( options ) { // don"t enforce new if ( ! ( this instanceof Dynamizer ) ) return new Dynamizer ( options ) ; if ( options ) { this . disableBoolean = options . disableBoolean || false ; // maps boolean values to numeric this . enableSets = options . enableSets || false ; // unsure about this option as yet this . disableLossyFloat = options . disableLossyFloat || false ; } }
mirror of the boto Dynamizer class for node.js
mirror of the boto Dynamizer class for node . js