lib/actions/insert-line-break.js
function hasScope(descriptor, scope) {
	for (let i = 0; i < descriptor.scopes.length; i++) {
		if (descriptor.scopes[i].includes(scope)) {
			return true;
		}
	}

	return false;
}
function hasScope(descriptor, scope) {
	for (let i = 0; i < descriptor.scopes.length; i++) {
		if (descriptor.scopes[i].includes(scope)) {
			return true;
		}
	}

	return false;
}
function hasScope ( descriptor , scope ) { for ( let i = 0 ; i < descriptor . scopes . length ; i ++ ) { if ( descriptor . scopes [ i ] . includes ( scope ) ) { return true ; } } return false ; }
Check if given scope descriptor contains given scope
@param  {ScopeDescriptor}  descriptor
@param  {String}  scope
@return {Boolean}
Check if given scope descriptor contains given scope