This project is archived and is in readonly mode.

#425 ✓resolved
Daniel Steigerwald

hash method map, wrong doc example

Reported by Daniel Steigerwald | October 14th, 2008 @ 01:22 PM | in 1.2.1

Argument item, index? That's for array. Hash map has value, key, hash.

var timesTwo = new Hash({a: 1, b: 2, c: 3}).map(function(item, index){
    return item * 2;
}); //timesTwo now holds an object containing: {a: 2, b: 4, c: 6};

Comments and changes to this ticket

  • Jan Kassens

    Jan Kassens October 14th, 2008 @ 01:50 PM

    • Assigned user changed from “Valerio” to “Jan Kassens”
    • State changed from “new” to “resolved”
    • Milestone changed from 2.0 to 1.2.1


Create your profile

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

Shared Ticket Bins