How to use 'javascript split integer' in JavaScript

Every line of 'javascript split integer' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
150value: function _split2Int() {
151 if (this.data == null || this.data.length == 0) return null;
152 var a = data.split("-");
153 if (a.length == 0) return null;
154 var b = [];
155 for (var i = 0, len = a.length; i < len; i++) {
156 try {
157 b[i] = parseInt(a[i]);
158 } catch (e) {
159 b[i] = 0;
160 }
161 }
162 return b;
163}
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code


Related snippets