Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/node_modules.5/libphonenumber-js/source/legacy/
Upload File :
Current File : /home/infinitibizsol/.trash/node_modules.5/libphonenumber-js/source/legacy/searchNumbers.js

import normalizeArguments from '../normalizeArguments.js'
import PhoneNumberMatcher from '../PhoneNumberMatcher.js'

/**
 * @return ES6 `for ... of` iterator.
 */
export default function searchNumbers()
{
	const { text, options, metadata } = normalizeArguments(arguments)

	const matcher = new PhoneNumberMatcher(text, options, metadata)

	return  {
		[Symbol.iterator]() {
			return {
	    		next: () => {
	    			if (matcher.hasNext()) {
						return {
							done: false,
							value: matcher.next()
						}
					}
					return {
						done: true
					}
	    		}
			}
		}
	}
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists