flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
16
VISUALIZACION/node_modules/es-abstract/helpers/isMatchRecord.js
generated
vendored
Executable file
16
VISUALIZACION/node_modules/es-abstract/helpers/isMatchRecord.js
generated
vendored
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
'use strict';
|
||||
|
||||
var has = require('has');
|
||||
|
||||
// https://262.ecma-international.org/13.0/#sec-match-records
|
||||
|
||||
module.exports = function isMatchRecord(record) {
|
||||
return (
|
||||
has(record, '[[StartIndex]]')
|
||||
&& has(record, '[[EndIndex]]')
|
||||
&& record['[[StartIndex]]'] >= 0
|
||||
&& record['[[EndIndex]]'] >= record['[[StartIndex]]']
|
||||
&& String(parseInt(record['[[StartIndex]]'], 10)) === String(record['[[StartIndex]]'])
|
||||
&& String(parseInt(record['[[EndIndex]]'], 10)) === String(record['[[EndIndex]]'])
|
||||
);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue