Skip to content

Instantly share code, notes, and snippets.

Nikita Seleckis seleckis

View GitHub Profile
@seleckis
seleckis / String.prototype.Retina.js
Last active Aug 29, 2015
String method to return retina filenames
View String.prototype.Retina.js
String.prototype.retina = function () {
return this.replace(/(\.\w+$)/, "@2x$1");
};
You can’t perform that action at this time.