mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-07-17 17:50:38 +00:00
Merge pull request #198 from FunkinCrew/bugfix/quick-merge-fix
Quick merge fix
This commit is contained in:
commit
0a4e0861cc
|
@ -23,13 +23,6 @@ class ArrayTools
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function pushUnique<T>(array:Array<T>, element:T):Bool
|
|
||||||
{
|
|
||||||
if (array.contains(element)) return false;
|
|
||||||
array.push(element);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the first element of the array that satisfies the predicate, or null if none do.
|
* Return the first element of the array that satisfies the predicate, or null if none do.
|
||||||
* @param input The array to search
|
* @param input The array to search
|
||||||
|
|
Loading…
Reference in a new issue