main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
256 bytes
|
Line | |
---|
1 | /* eslint-disable no-console */
|
---|
2 | 'use strict'
|
---|
3 |
|
---|
4 | let printed = {}
|
---|
5 |
|
---|
6 | module.exports = function warnOnce(message) {
|
---|
7 | if (printed[message]) return
|
---|
8 | printed[message] = true
|
---|
9 |
|
---|
10 | if (typeof console !== 'undefined' && console.warn) {
|
---|
11 | console.warn(message)
|
---|
12 | }
|
---|
13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.