"use strict";
var emptyFunction = require('emptyFunction');
var warning = emptyFunction;
if (__DEV__) {
warning = function(condition, format, ...args) {
if (format === undefined) {
throw new Error(
'`warning(condition, format, ...args)` requires a warning ' +
'message argument'
);
}
if (!condition) {
var argIndex = 0;
console.warn('Warning: ' + format.replace(/%s/g, () => args[argIndex++]));
}
};
}
module.exports = warning;