{"size": 312, "ext": "js", "max_stars_repo_path": "src/helpers/isDroppable.js", "max_stars_repo_name": "nilguncanbaz/one-suit-spider-solitaire", "max_stars_repo_stars_event_min_datetime": "2021-12-31T15:12:40.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-31T15:12:40.000Z", "max_issues_repo_path": "src/helpers/isDroppable.js", "max_issues_repo_name": "nilguncanbaz/one-suit-spider-solitaire", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/helpers/isDroppable.js", "max_forks_repo_name": "nilguncanbaz/one-suit-spider-solitaire", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 39.0, "max_line_length": 80, "alphanum_fraction": 0.766025641}
export function isDroppable(movedCards, enteredCards) {
    if (enteredCards.length === 0) return true;

    const enteredCardsLastCardCode = enteredCards[enteredCards.length - 1].code;
    const movedCardsFirstCardCode = movedCards[0].code;

    return enteredCardsLastCardCode + 1 === movedCardsFirstCardCode
}