content/flux/v0/stdlib/experimental/array/tobool.md
array.toBool() converts all values in an array to booleans.
[string] with values true or false[int] with values 1 or 0[uint] with values 1 or 0[float] with values 1.0 or 0.0(<-arr: [A]) => [bool]
{{% caption %}} For more information, see Function type signatures. {{% /caption %}}
Array of values to convert. Default is the piped-forward array (<-).
import "experimental/array"
arr = [
1,
1,
0,
1,
0,
]
array.toBool(arr: arr)// Returns [true, true, false, true, false]