What do you want to save?
Add Code snippet
New code examples
-
C# 2021-11-21 20:58:22
IQueryable Query camleCase properties
private static Expression<Func<T, bool>> CreateLike<T>(PropertyInfo prop, string value) { var parameter = Expression.Parameter(typeof(T), "f"); var propertyAccess = Expression.MakeMemberAccess(parameter,... Add solution -
Javascript 2021-11-21 16:55:18
javascript if browser out of focus
var hidden, visibilityChange; if (typeof document.hidden !== "undefined") { // Opera 12.10 and Firefox 18 and later support hidden = "hidden"; visibilityChange = "visibilitychange"; } else if (typeof document.msHidden !==... Add solution -
TypeScript 2021-11-21 07:10:14
react typescript custom hook
export function useLoading() { const [isLoading, setState] = React.useState(false); const load = (aPromise: Promise<any>) => { setState(true); return aPromise.finally(() => setState(false)); }; return [isLoading, load] as const... Add solution -
Javascript 2021-11-21 01:53:25
JS function typeof
console.log(typeof 93); // Output = "number" console.log(typeof 'Maximum'); // Output = 'string' console.log(typeof false); // Output = "boolean" console.log(typeof anUndeclaredVariable); // Output = "undefined" Add solution -
Javascript 2021-11-20 23:22:11
month name array javascript
'use strict'; (function(d){ var mL = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; var mS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'N... Add solution