Python Check Array Size Javascript Playground