mirror of
https://github.com/jorgevasquezp/AE_Scripts.git
synced 2026-09-16 11:13:49 +00:00
Updated repository with latest 'live' tools.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
//Useful extensions to the JavaScript class versions that come with the default ExtendScript version.
|
||||
|
||||
if (Array.prototype.getOne==null) Array.prototype.getOne=function(item){ //Extends the Array class with the getOne functions wich
|
||||
var val = -1;
|
||||
for(i=0;i<=this.length;i++){
|
||||
if(this[i]==item){
|
||||
var val = i;
|
||||
}
|
||||
}
|
||||
return val;
|
||||
}
|
||||
Reference in New Issue
Block a user