30秒学会 Python 片段 – check_prop.md
title: check_prop tags: function,intermediate Given a predicate function, fn, and a prop string, thi...
title: check_prop tags: function,intermediate Given a predicate function, fn, and a prop string, thi...
Converts a given string into an array of words. Use String.prototype.split() with a supplied pattern...
Returns true if the specified value is undefined, false otherwise. Use the strict equality operator ...
Decapitalizes the first letter of a string. Decapitalizes the first letter of the string and then ad...
Returns the powerset of a given array of numbers. Use Array.prototype.reduce() combined with Array.p...
Returns a shortened string. Use mb_strlen(), mb_substr() and rtrim() to shorten a string to a give n...
Checks if the first numeric argument is divisible by the second one. Use the modulo operator (%) to ...
Returns all unique values of an array, based on a provided comparator function. Use Array.prototype....
Returns a boolean determining if the passed value is primitive or not. Create an object from val and...
Returns the average of a list, after mapping each element to a number using the provided function. U...