I have the following code:
var selectedTitles = $("#js-otms-titles-table .select_title :checkbox:checked").map(function() { return $(this).attr('data-titleId'); }); console.log("Selected titles"); console.log(selectedTitles);
I expect the result to be an array. However, I get an object like:
Object["55a930cd27daeaa6108b4f68", "55a930cd27daeaa6108b4f67"]
Is there a special flag for passing a function? In docs, they talk about arrays as a return value. Did I miss something?
jQuery 1.11.2
source share