internals - Javascripts String.split - how does it work internally? -


I have recently discussed with a colleague that the separator of String.split is internally How is Javascript behaved?

Does the separator always change in a regular expression? Like string will split (",", myvar), change "," to a regulation expression that matches that string?

Answer to your question: "Is the separator always in a regular expression?" Is:

This depends only on the implementation. For example, if you find WebKit implementation (stringprofonfunction) you will see that it does not always change in RegX. However, it does not show anything, it is a case of implementation


Comments