index.js
function registerBreakpoints(breakpoints) {
		let register = [];

		Object.keys(breakpoints).forEach(name => {
			register.push('(^' + escRgx(name) + '$)');
		});

		if (! register.length) {
			return false;
		}

		return new RegExp(register.join('|'));
	}
function registerBreakpoints(breakpoints) {
		let register = [];

		Object.keys(breakpoints).forEach(name => {
			register.push('(^' + escRgx(name) + '$)');
		});

		if (! register.length) {
			return false;
		}

		return new RegExp(register.join('|'));
	}
function registerBreakpoints ( breakpoints ) { let register = [ ] ; Object . keys ( breakpoints ) . forEach ( name => { register . push ( '(^' + escRgx ( name ) + '$)' ) ; } ) ; if ( ! register . length ) { return false ; } return new RegExp ( register . join ( '|' ) ) ; }
Create regex to identify breakpoints

@param {object} breakpoints
@returns {RegExp}
Create regex to identify breakpoints