Title:
[ANeff] ER for: delete/deleteNoCase/deleteAt member functions should return a useful value
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 05/12/2016
Components: Language, Member Functions
Versions: 2016
Failure Type: Enhancement Request
Found In Build/Fixed In Build: CF2016_Final / CF 2018 Final Build
Priority/Frequency: Trivial / Unknown
Locale/System: English / Win All
Vote Count: 1
3844976 fixed .append() member functions to return a useful value for chaining. Same should be done for .delete()/.deleteAt().
Repro:
<cfscript>
a = ["a", "b", "c"];
s = {"a"=1, "b"=2, "c"=3};
a.delete("b").each(function(e) {writeOutput(e);});
a.deleteAt(2).each(function(e) {writeOutput(e);});
s.delete("b").each(function(k,v) {writeOutput(k);});
</cfscript>
Actual behavior: "The each method was not found."
Expected behavior: "ac"
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4152465
External Customer Info:
External Company:
External Customer Name: Aaron Neff
External Customer Email:
Attachments:
Comments: