Fabric.js invoke() Method
The invoke() method is used to perform certain actions like sorting, joining, etc. on the elements of the specified array.
Parameters: This method accepts two parameters as mentioned above and described below:
- array: This parameter holds the array to iterate over.
- method: This parameter holds the name of a method to invoke.
Return Value: This method returns the array formed after the given method is applied to it.
[[1, 6, 8], [3, 5, 7], [33, 55, 76]]
["11, 6, 8", "33, 25, 32"]