MCPcopy
hub / github.com/nanostores/nanostores / warn

Function warn

warn/index.js:3–12  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

1let warned = {}
2
3export function warn(text) {
4 if (!warned[text]) {
5 warned[text] = true
6 if (typeof console !== 'undefined' && console.warn) {
7 console.groupCollapsed('Nano Stores: ' + text)
8 console.trace('Source of deprecated call')
9 console.groupEnd()
10 }
11 }
12}

Callers 2

deepMapFunction · 0.90
setFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected