<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.personaldata.io/w/index.php?action=history&amp;feed=atom&amp;title=User%3AAlexbfree%2FsnippetForSearchingArray.js</id>
	<title>User:Alexbfree/snippetForSearchingArray.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.personaldata.io/w/index.php?action=history&amp;feed=atom&amp;title=User%3AAlexbfree%2FsnippetForSearchingArray.js"/>
	<link rel="alternate" type="text/html" href="https://wiki.personaldata.io/w/index.php?title=User:Alexbfree/snippetForSearchingArray.js&amp;action=history"/>
	<updated>2026-04-10T09:06:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.personaldata.io/w/index.php?title=User:Alexbfree/snippetForSearchingArray.js&amp;diff=77511&amp;oldid=prev</id>
		<title>Alexbfree: Created page with &quot;// copied from https://wiki.personaldata.io/wiki/MediaWiki:Access.js // helper function for diving into a part of array function indexInterpolate(obj,i) { return  (obj[i] != u...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.personaldata.io/w/index.php?title=User:Alexbfree/snippetForSearchingArray.js&amp;diff=77511&amp;oldid=prev"/>
		<updated>2020-01-27T16:54:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;// copied from https://wiki.personaldata.io/wiki/MediaWiki:Access.js // helper function for diving into a part of array function indexInterpolate(obj,i) { return  (obj[i] != u...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;// copied from https://wiki.personaldata.io/wiki/MediaWiki:Access.js&lt;br /&gt;
// helper function for diving into a part of array&lt;br /&gt;
function indexInterpolate(obj,i) { return  (obj[i] != undefined) ? obj[i] : obj}; &lt;br /&gt;
// helper function for checking a part of an array exists&lt;br /&gt;
function indexCheck(obj,i) {  return  (obj[i] != undefined) ? obj[i] : undefined };&lt;br /&gt;
// dive selects matrix.a.b.c.d from the array called matrix and 'a.b.c.d' as string&lt;br /&gt;
// if a.b.c.d does not exists, it returns the substructure until the substructure exists, if d does not exist, it returns matrix.a.b.c e.g.&lt;br /&gt;
function dive(array, read){&lt;br /&gt;
	return read.split('.').reduce(indexInterpolate, array);&lt;br /&gt;
}&lt;br /&gt;
function check(array, read){&lt;br /&gt;
        return read.split('.').reduce(indexCheck, array);&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Alexbfree</name></author>
	</entry>
</feed>