Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 13ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
J

Javascript

Recently created Least recently created Recently updated Least recently updated
michelgentile

michelgentile / Sanitize

Last active 6 months ago Javascript
0 0 1
1 function sanitize( data, config )
2 {
3 //Object and arrays
4 if( typeof( data ) == 'object' )
5 {
6 for( let key in data )
7 {
8 data[ key ] = sanitize( data[ key ], config );
9 }