This project is archived and is in readonly mode.

#1091 ✓resolved
Peter Esveld

Documentation for Object.map() seems wrong

Reported by Peter Esveld | November 16th, 2010 @ 05:30 AM | in 1.3.1 (closed)

Shouldn't the docs read:

var myObject = {a: 1, b: 2, c: 3};
var timesTwo = Object.map(myObject, function(value, key){

return value * 2;

}); // timesTwo now holds an object containing: {a: 2, b: 4, c: 6};

instead of:

var myObject = {a: 1, b: 2, c: 3};
var timesTwo = Object.map(timesTwo, function(value, key){

return value * 2;

}); // timesTwo now holds an object containing: {a: 2, b: 4, c: 6};

Comments and changes to this ticket

  • Arian

    Arian November 16th, 2010 @ 04:09 PM

    • State changed from “new” to “resolved”
    • Milestone set to 1.3.1
    • Assigned user set to “Arian”
    • Tag set to documentation, object.map
    • Milestone order changed from “834” to “0”

    Thanks for noticing, but this is already fixed for the next release.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages