Quantcast
Viewing all articles
Browse latest Browse all 8068

I need a quick response as to what this js code is doing, please.

Hi a dev on my team wrote this and I need to know what is doing.

var icnPath = 'images/icons/bundle/';
var path = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, icnPath);
var dir = path.getDirectoryListing();
var images = [];
for (intFile in dir) {
    if (dir[intFile].indexOf("@2x") == -1) {
        images[dir[intFile].replace(".png", "")] = icnPath + dir[intFile];  
    }
}

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>