Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let details = title.split(/-(.+)/)[1].split('-');
- let color, storage = "";
- $(details).each(function(k, v) {
- if (k == (details.length - 1)) {
- color = v.trim();
- } else if (v.indexOf('GB') >= 0) {
- storage = v.trim();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement