Free-to-Play Games Database

無料
よって Digiwalls Media | 更新済み לפני 6 ימים | Gaming
人気

9.8 / 10

レイテンシー

1,351ms

サービスレベル

99%

Health Check

N/A

すべてのディスカッションに戻る

limit?

Rapid account: Frandepaulo 23 Kixps GD Tq U 8
frandepaulo23-kixpsGDTqU8
לפני 3 שנים

How can I make a map with a limit of 10 games?

Rapid account: Coding By Gopal
CodingByGopal Commented לפני שנתיים

const indexOfLastGameInList = currentPage * gameItemPerPage;
const indexOfFirstGameInList = indexOfLastGameInList - gameItemPerPage;
const currentGameList = results.slice(
indexOfFirstGameInList,
indexOfLastGameInList
);

// then use map

{currentGameList.map((data) => {return <li>{data.xyz}</li>,}

Rapid account: Cpinopacheco 64
cpinopacheco64 Commented לפני שנתיים

I would like to know the same, I am looking for the option to bring a certain amount of elements. How can that be done?

Rapid account: Frandepaulo 23 Kixps GD Tq U 8
frandepaulo23-kixpsGDTqU8 Commented לפני 3 שנים

I am trying to render in the DOM only 10 games of the more than 400 that are in the api…
some APIs can be assigned something like freetogame.com/api/games?limits=10 or api/games?results=10
does this api have that option?

Rapid account: Digiwalls
digiwalls Commented לפני 3 שנים

What you trying to do exactly?

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿