February 2019
Intermediate to advanced
626 pages
15h 51m
English
In PowerShell, some string methods can be called on an array. The method will be executed against each of the elements in the array. For example, the Trim method is used against each of the strings as follows:
('azzz', 'bzzz', 'czzz').Trim('z')
The Split method is also capable of acting against an array:
('a,b', 'c,d').Split(',')
This remains true as long as the array object doesn't have a conflicting method or property. For example, the Insert method can't be used as an array object has a version of its own.
Read now
Unlock full access