CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-lodash-unescape

Converts HTML entities to their corresponding characters in a string

Overall
score

85%

Evaluation85%

1.39x

Agent success when using this tile

Overview
Eval results
Files

task.mdevals/scenario-6/

Student Sorting System

Build a system that sorts arrays of student objects based on one or more properties.

Capabilities

Sort by single property

  • Sort students by a single property in ascending order @test
  • Sort students by a computed value (e.g., function that calculates average) @test

Sort by multiple properties with order control

  • Sort students by multiple properties with custom sort directions (ascending or descending) @test

Implementation

@generates

API

/**
 * Sorts an array of students by one or more properties.
 *
 * @param {Array} students - Array of student objects to sort
 * @param {string|Function|Array} iteratees - Property name(s) or function(s) to sort by
 * @param {string|Array} orders - Optional sort order(s): 'asc' or 'desc'
 * @returns {Array} New sorted array of students
 */
function sortStudents(students, iteratees, orders) {
  // IMPLEMENTATION HERE
}

module.exports = {
  sortStudents,
};

Dependencies { .dependencies }

lodash { .dependency }

Provides collection sorting utilities.

Install with Tessl CLI

npx tessl i tessl/npm-lodash-unescape

tile.json