How to use an implicit generic list as a parameter?

I am using JavaScript and I want to write a function that can use a generic list of any type as a parameter.

static function ImplicitFunction(myList:List.<T>) {
    //code etc    	
    return;
}

How can I go about doing this?

I believe you’d have to in-turn make your function a generic function…

Unfortunately, JavaScript does NOT have this kind of functionality - you have to use C# if you want to use Generics.

public static void ImplicitFunction<T>(List<T> myList) {
	// code etc
	return; //btw you dont have to return; in void functions/methods
}