Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to the the object at index with node.js

How to the the object at index with node.js

Problem

I am a iOS developer, I just can't find the info about how to get the first Object of a array or object at index of some array.

Problem courtesy of: yong ho

Solution

Assuming you are looking to find the object at index of an array in node.js, you can use it like

var objYouAreLooking = sourceArray[index];

This is similar to

 objYouAreLooking = [sourceArray objectAtIndex:index];

in Objective c.

Solution courtesy of: Srijith Vijayamohan

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

How to the the object at index with node.js

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×