TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

LoStorage.js - Client-side storage the way it should be

1 pointsby js-coderover 12 years ago

1 comment

n-gaugeover 12 years ago
Good example and if your using the ! in front of the function to save a byte you could change the for loops like so:<p>for (var i = 0, l = keys.length; i &#60; l; i++) {<p>to<p>for (var i = keys.length; i--;) {<p>(to save even more)