Skip to content

Commit 9c9b4f6

Browse files
committed
GetCamera will return a camera based on its name.
1 parent 3a3c24c commit 9c9b4f6

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
var GetCamera = function (name)
2+
{
3+
this.cameras.forEach(function (camera)
4+
{
5+
if (camera.name === name)
6+
{
7+
return camera;
8+
}
9+
});
10+
11+
return null;
12+
};
13+
14+
module.exports = GetCamera;

0 commit comments

Comments
 (0)