Check out example codes for "kotlin every". It will help you in understanding the concepts better.

Code Example 1

val array = arrayOf(8, 3, 5, 9, 1, 2)
array.all { it < 9 } // false
array.all { it < 10 } // true

Learn ReactJs, React Native from akashmittal.com