A localStorage wrapper for all browsers without using cookies or flash, providing persistent client-side storage with automatic fallback and plugin architecture
75
{
"context": "This evaluation assesses how well the engineer uses the store.js library's iteration functionality, specifically the each() method, to implement preference management features. The focus is on proper usage of the each() callback pattern to collect and process stored key-value pairs.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses store.each()",
"description": "Implementation uses the store.each() method to iterate over stored preferences rather than manually tracking keys or using other approaches",
"max_score": 40
},
{
"name": "Correct callback pattern",
"description": "The callback function passed to store.each() correctly receives and uses the (value, key) parameter order as specified by the store.js API",
"max_score": 25
},
{
"name": "Uses store.set()",
"description": "The setPreference function correctly uses store.set() to store preference values",
"max_score": 15
},
{
"name": "Uses store.clearAll()",
"description": "The clearAllPreferences function uses store.clearAll() method to remove all stored preferences",
"max_score": 10
},
{
"name": "Proper data collection",
"description": "The getAllPreferences function accumulates key-value pairs from the each() callback into an object or data structure that is returned",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-storeevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10