Anastasiia Mishunina
Anastasiia Mishunina

Reputation: 11

Split function always returns empty array [Browserstack, IOS devices]

Steps for reproducing:

  1. Open any site using any IOS device on Browserstack
  2. Open DevTool
  3. Execute in console smth like "bla bla bla".split(" ")

Expected: (3) ["bla", "bla", "bla"]

In fact: []

Have anyone ever bumped into this issue?

Upvotes: 1

Views: 52

Answers (1)

Dharmendra
Dharmendra

Reputation: 71

It seems to be a limitation of the iOS Dev Tools on BrowserStack. However, you should be able to get the expected output by executing the command - console.log("bla bla bla".split(" "))

enter image description here

Upvotes: 1

Related Questions