24 matches across 1 files for func main lang:JavaScript path:examples/classic/todomvc/app.js lang:JavaScript
snippet_mode: auto · sorted by relevance
examples/classic/todomvc/app.js JAVASCRIPT 24 matches · showing 5 view file →
5var STORAGE_KEY = 'todos-vuejs-2.0'
6var todoStorage = {
7 fetch: function () {
8 var todos = JSON.parse(localStorage.getItem(STORAGE_KEY) || '[]')
9 todos.forEach(function (todo, index) {
· · ·
9 todos.forEach(function (todo, index) {
10 todo.id = index
11 })
· · ·
13 return todos
14 },
15 save: function (todos) {
16 localStorage.setItem(STORAGE_KEY, JSON.stringify(todos))
17 }
· · ·
20// visibility filters
21var filters = {
22 all: function (todos) {
23 return todos
24 },
· · ·
25 active: function (todos) {
26 return todos.filter(function (todo) {
27 return !todo.completed
+ 19 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.