arr = [[1,2,3],[4,5,6],[7,8,9]]
For javascript:
var result = 1 in arr.flat();
For python:
var result = any(1 in sub for sub in arr);
Post a Comment
No comments:
Post a Comment