translate from c# to java (operations with list)

I don’t understand what means : “c”, “col” and “t” in this cases :

List<Collider> lCol = new List<Collider>();
 public string tagMask = string.Empty;
 if (!string.IsNullOrEmpty(tagMask))
          lCol.RemoveAll(c => c.tag != tagMask);
 List<Transform> objectsInSightNow = new List<Transform>();
 lCol.ForEach(col => objectsInSightNow.Add(col.transform));
private List<Transform> _targetsInSight;
 objectsNotInSight.AddRange(_targetsInSight.FindAll(t => !objectsInSightNow.Contains(t)));

I got it from “VisionSystem”, just want rewrite on javascript.

Thanks.

The code that you’re referencing is called Linq. Linq is a library that you can import, and it supports all kinds of fancy array operations and queries.

It sounds like you can use Linq in JS, and it looks pretty similar. For instance: