Ctrl + k

or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/lodash.unescape@4.0.x
tile.json

tessl/npm-lodash-unescape

tessl install tessl/npm-lodash-unescape@4.0.0

Converts HTML entities to their corresponding characters in a string

Agent Success

Agent success rate when using this tile

85%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.39x

Baseline

Agent success rate without this tile

61%

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.