odin-js-fundamentals-part-5/node_modules/es-abstract/helpers/isLineTerminator.js

8 lines
188 B
JavaScript
Raw Permalink Normal View History

2024-01-11 08:52:05 +00: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';
};