Phase 1 PWA: prayer times, qibla, quran, hijri, tasbih, 99 names

This commit is contained in:
Hermes Bot
2026-08-06 11:55:47 +08:00
parent 4def05d0ef
commit 0d37e7ec1e
10869 changed files with 959465 additions and 18 deletions
+26
View File
@@ -0,0 +1,26 @@
'use strict';
var $TypeError = require('es-errors/type');
var CanonicalizeKeyedCollectionKey = require('./CanonicalizeKeyedCollectionKey');
var IsArray = require('./IsArray');
var SameValue = require('./SameValue');
var some = require('../helpers/some');
// https://262.ecma-international.org/16.0/#sec-setdatahas
module.exports = function SetDataHas(setData, value) {
if (!IsArray(setData) && setData !== 'EMPTY') {
throw new $TypeError('Assertion failed: `setData` must be a List or ~EMPTY~');
}
// if (SetDataIndex(setData, value) === 'NOT-FOUND') { return false; } // step 1
// return true; // step 2
var canonValue = CanonicalizeKeyedCollectionKey(value);
return some(setData, function (e) {
return SameValue(e, canonValue);
});
};