Skip to content
This repository was archived by the owner on Dec 25, 2022. It is now read-only.
This repository was archived by the owner on Dec 25, 2022. It is now read-only.

I want to get only first 3 elements from an array. Is that possible ? #41

Open
@ShuvoHabib

Description

@ShuvoHabib

Let's say we're getting an array of 5 items from the API. Can we get only 3 items, not all the 5 items?

{
  "data": {
    "finance": {
      "data": [
        {
          "id": "590522000022443198",
          "City": "Melaka"
        },
        {
          "id": "590522000025688127",
          "City": "Limassol"
        },
        {
          "id": "590522000037762639",
          "City": "Cyberjaya"
        },
        {
          "id": "590522000037762487",
          "City": "Labuan"
        },
        {
          "id": "590522000022432183",
          "City": "Ipoh"
        }
      ]
    }
  },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions