securityos/node_modules/es-abstract/helpers/isLineTerminator.js

8 lines
188 B
JavaScript

'use strict';
// https://262.ecma-international.org/5.1/#sec-7.3
module.exports = function isLineTerminator(c) {
return c === '\n' || c === '\r' || c === '\u2028' || c === '\u2029';
};