mirror of
https://github.com/jorgevasquezp/AFX_yTools.git
synced 2026-09-16 11:13:40 +00:00
12 lines
384 B
React
Executable File
12 lines
384 B
React
Executable File
//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;
|
|
}
|