r a y . f i n d ( c a l l b a c k , t h i s A r g ? ) , A r r a y . f i n d I n d e x ( c a l l b a c k , t h i s A r g ? ) [ ' h e l l o ' , ' w o r l d ' , ' ! ' ] . f i n d ( s = > s . s t a r t s W i t h ( ' w ' ) ) ; / / " w o r l d " [ ' h e l l o ' , ' w o r l d ' , ' ! ' ] . f i n d ( s = > s . s t a r t s W i t h ( ' k ' ) ) ; / / u n d e f i n e d [ ' h e l l o ' , ' w o r l d ' , ' ! ' ] . f i n d I n d e x ( s = > s . s t a r t s W i t h ( ' w ' ) ) ; / / 1 [ ' h e l l o ' , ' w o r l d ' , ' ! ' ] . f i n d I n d e x ( s = > s . s t a r t s W i t h ( ' k ' ) ) ; / / - 1 A r r a y . f r o m ( a r r a y L i k e , m a p F u n c ? , t h i s A r g ? ) converts array like or I t e r a t o r objects into an A r r a y l e t a r r = A r r a y . f r o m ( d o c u m e n t . q u e r y S e l e c t o r A l l ( ' p ' ) ) ; / / l e t a r r = [ . . . d o c u m e n t . q u e r y S e l e c t o r A l l ( ' p ' ) ] ; a s s h o r t a l t e r n a t i v e A r r a y . o f ( . . . a r g s ) is an less error prone alternative to the A r r a y constructor / / b e f o r e E S 6 n e w A r r a y ( 3 , 2 , 1 ) ; / / - > [ 3 , 2 , 1 ] n e w A r r a y ( 3 ) ; / / - > [ , , ] / / E S 6 a r r = A r r a y . o f ( 1 , 2 , 3 ) ; / / - > [ 1 , 2 , 3 ] a r r = A r r a y . o f ( 3 ) ; / / - > [ 3 ] A r r a y . e n t r i e s ( ) , A r r a y . k e y s ( ) , A r r a y . v a l u e s ( ) return I t e r a t o r 's A r r a y . f i l l ( v a l u e , s t a r t = 0 , e n d = t h i s . l e n g t h ) fills all the elements of an array from a start index to an end index with