author : Ausin Ruby Nov 7th, 2019. Modularized
 *  function param returns changelog const parseQuery = require ( './parseQuery' ) ; const useCheckQueryBrackets = require ( './checkQueryBrackets' ) ; function extractQueries ( string ) { const gq = 'graphQuill' ; const queriesArr = [ ] ; for ( let i = 0 ; i < string . length ; i += 1 ) { if ( string . slice ( i , i + gq . length ) === gq ) { queriesArr . push ( parseQuery ( string . slice ( i + gq . length ) ) ) ; } } const validatedQueriesArr = queriesArr . map ( ( queryString ) => ( useCheckQueryBrackets ( queryString ) ) ) ; return validatedQueriesArr ; } module . exports = extractQueries ;