This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var orders = [ | |
{ orderId: 'I8001', customerId: '5142' }, | |
{ orderId: 'I1006', customerId: '5142' }, | |
{ orderId: 'I1009', customerId: '5142' }, | |
{ orderId: 'I1001', customerId: '5145' }, | |
{ orderId: 'I9999', customerId: '5146' } | |
], | |
result = orders.reduce(function (r, a) { | |
r[a.customerId] = r[a.customerId] || []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using CMS.DocumentEngine; | |
namespace Example.Linq | |
{ | |
public static class DocumentSearchEventArgsExtensions | |
{ | |
public static void AddContent(this DocumentSearchEventArgs searchEventArgs, string content) | |
{ | |
searchEventArgs.Content += $" {content}"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using CMS; | |
using CMS.DataEngine; | |
using CMS.DocumentEngine; | |
using Example.Linq; | |
using Example.Search; |