InternetProgramming/Lab3/node_modules/es-abstract/helpers/isLineTerminator.js

8 lines
188 B
JavaScript
Raw Normal View History

2023-12-15 14:42:22 +04:00
'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';
};