react-room-occupancy-input
Version:
React.js component for specifying a hotel room occupancy: how many adults, how many kids, how old kids are
16 lines (11 loc) • 412 B
JavaScript
(function () {
'use strict';
var assert = require('assert');
exports.cssClass = function (element, className) {
var cn = element.className;
assert(cn.split(' ').indexOf(className) >= 0, className + ' not found in ' + cn);
};
exports.contains = function (haystack, needle) {
assert(haystack.indexOf(needle) >= 0, needle + ' not found in ' + haystack);
};
}());