// 1, 2
let phones_user = {
"12312312":192,
"12345234":200,
"12312312":192,
"1231231":192,
"1231232":192,
"1231212":192,
"1231312":192,
"1232312":192,
"1212312":192,
"1312312":192,
"2312312":192,
"123123":192,
"123112":192,
"122312":192,
"312312":192,
"123312":192,
"123232":192,
}
// 3
let phones = ['122312', '123112', '123123', '123232', '123312', '312312', '1212312', '1231212', '1231231', '1231232', '1231312', '1232312', '1312312', '2312312', '12312312', '12345234']
let user_phones = {
192: ['122312', '123112', '123123', '123232', '123312', '312312', '1212312', '1231212', '1231231'],
200: [ '1231232', '1231312', '1232312', '1312312', '2312312', '12312312', '12345234']
}Initializing...
| Test Case | Ops/sec | |
|---|---|---|
| keys includes | | ready |
| for in | | ready |
| array + object for in | | ready |
| array + object | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.