From b2fe6e3c5370c7c0c413df21d650e8c237c1a8fc Mon Sep 17 00:00:00 2001 From: stefangabos Date: Wed, 30 Mar 2022 14:30:46 +0300 Subject: [PATCH] Added more info about using the helper functions --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index c0ae0b2..61ce3ef 100644 --- a/README.md +++ b/README.md @@ -169,6 +169,7 @@ Here's a little helper function for searching for a specific country's data > The helper function assumes that the JSON with the countries data is associated with a variable named `countries` which is in the same scope as the function +> The helper function is to be used with the *non-combined* data sets.
For the *combined* data sets you can write the function yourself. ```js // returns an object with the sought country's data if the search yields a result @@ -216,6 +217,8 @@ Excerpt from the `data/countries/en/countries.php` file: ``` Here's a little helper function for searching for a specific country's data +> The helper function is to be used with the *non-combined* data sets.
For the *combined* data sets you can write the function yourself. + ```php // this function assumes that you have done this: $countries = require 'path/to/countries.php';